journalctl: make journalctl -g work as documented

Add "g" to optstring so both "--grep" and "-g" work with journalctl
This commit is contained in:
Douglas Christman
2018-03-01 21:50:38 +08:00
parent 16a4f265e4
commit 2de6b06b27
+1 -1
View 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) {