1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00

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-02-27 20:16:26 -05:00
parent 16a4f265e4
commit 2de6b06b27

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) {