]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl: make journalctl -g work as documented
authorDouglas Christman <DouglasChristman@gmail.com>
Wed, 28 Feb 2018 01:16:26 +0000 (20:16 -0500)
committerDouglas Christman <DouglasChristman@gmail.com>
Thu, 1 Mar 2018 13:50:38 +0000 (21:50 +0800)
Add "g" to optstring so both "--grep" and "-g" work with journalctl

src/journal/journalctl.c

index 02715142e91461c58c4f10b1b1f25cd9fc4cf40e..e0ad0e1d119ddf712bf64cc98e54dc3a46a60f3d 100644 (file)
@@ -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) {