summaryrefslogtreecommitdiff
path: root/src/journal/journalctl.c
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2015-10-13 09:04:11 +0300
committerEvgeny Vereshchagin <evvers@ya.ru>2015-10-13 09:04:11 +0300
commitf98a41c21d80a5bc1dff40301faefb1b585767f2 (patch)
tree45e140f8981e7ecda0e97865ef95ab5b3162761f /src/journal/journalctl.c
parentdd598123a9f9416c9b8fd5f4ef60b77574750941 (diff)
journalctl: enable args for --dump-catalog and --list-catalog
`journalctl --dump-catalog ID1 ID2 ...` works fine.
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r--src/journal/journalctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 3cc5b1e702..e163e3d417 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -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;
}