From: Douglas Christman Date: Wed, 28 Feb 2018 01:16:26 +0000 (-0500) Subject: journalctl: make journalctl -g work as documented X-Git-Tag: v238~30^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2de6b06b272b2b89035c67d879f330e3c70ba6b3;p=thirdparty%2Fsystemd.git journalctl: make journalctl -g work as documented Add "g" to optstring so both "--grep" and "-g" work with journalctl --- 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) {