report-basic-server: use accessor function

This is the API for "external" users.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-05-05 13:48:48 +02:00
parent e8e3bd1dc3
commit e235b6a280
+1 -1
View File
@@ -68,7 +68,7 @@ static int parse_argv(int argc, char *argv[]) {
return version();
}
if (opts.optind < argc)
if (option_parser_get_n_args(&opts) > 0)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"This program takes no arguments.");