From 2de6b06b272b2b89035c67d879f330e3c70ba6b3 Mon Sep 17 00:00:00 2001 From: Douglas Christman Date: Tue, 27 Feb 2018 20:16:26 -0500 Subject: [PATCH] journalctl: make journalctl -g work as documented Add "g" to optstring so both "--grep" and "-g" work with journalctl --- src/journal/journalctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 02715142e91..e0ad0e1d119 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -494,7 +494,7 @@ static int parse_argv(int argc, char *argv[]) { assert(argc >= 0); assert(argv); - while ((c = getopt_long(argc, argv, "hefo:aln::qmb::kD:p:c:S:U:t:u:NF:xrM:", options, NULL)) >= 0) + while ((c = getopt_long(argc, argv, "hefo:aln::qmb::kD:p:g:c:S:U:t:u:NF:xrM:", options, NULL)) >= 0) switch (c) { -- 2.47.3