stdio-bridge: minor modernization for parse_argv()

This commit is contained in:
Mike Yuan
2025-04-12 19:15:10 +02:00
parent 9f091f098a
commit 6989688a51
+6 -2
View File
@@ -92,10 +92,14 @@ static int parse_argv(int argc, char *argv[]) {
return -EINVAL;
default:
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"Unknown option code %c", c);
assert_not_reached();
}
if (argc > optind)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"%s takes no arguments.",
program_invocation_short_name);
return 1;
}