mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
journalctl: enable args for --dump-catalog and --list-catalog
`journalctl --dump-catalog ID1 ID2 ...` works fine.
This commit is contained in:
parent
dd598123a9
commit
f98a41c21d
@ -748,7 +748,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (arg_action != ACTION_SHOW && optind < argc) {
|
||||
if (!IN_SET(arg_action, ACTION_SHOW, ACTION_DUMP_CATALOG, ACTION_LIST_CATALOG) && optind < argc) {
|
||||
log_error("Extraneous arguments starting with '%s'", argv[optind]);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user