kernel-install: exit with option --json=help (#39974)

In that case, `parse_json_argument()` returns 0.

Follow-up for bdd36c003d (v255).
This commit is contained in:
Antonio Álvarez Feijoo
2025-12-03 01:56:01 +09:00
committed by GitHub
parent ce3acf9acb
commit 4ae16cf9b7
+1 -1
View File
@@ -1621,7 +1621,7 @@ static int parse_argv(int argc, char *argv[], Context *c) {
case ARG_JSON:
r = parse_json_argument(optarg, &arg_json_format_flags);
if (r < 0)
if (r <= 0)
return r;
break;