broker: fail on invalid cmdline args
Instead of returning MAIN_EXIT, use MAIN_FAILED so we actually exit
with an error code.
@@ -57,7 +57,7 @@ static int parse_argv(int argc, char *argv[]) {
if (optind != argc) {
fprintf(stderr, "%s: invalid arguments -- '%s'\n", program_invocation_name, argv[optind]);
- return MAIN_EXIT;
+ return MAIN_FAILED;
}
return 0;
