mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
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:
committed by
GitHub
parent
ce3acf9acb
commit
4ae16cf9b7
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user