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-02 17:56:01 +01:00
committed by GitHub
parent ce3acf9acb
commit 4ae16cf9b7

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;