summaryrefslogtreecommitdiff
path: root/src/journal/journalctl.c
diff options
context:
space:
mode:
authorDouglas Christman <DouglasChristman@gmail.com>2018-02-27 20:16:26 -0500
committerDouglas Christman <DouglasChristman@gmail.com>2018-03-01 21:50:38 +0800
commit2de6b06b272b2b89035c67d879f330e3c70ba6b3 (patch)
tree06d33e59a4bd7ee08bc85f6066333ea4549dbfb0 /src/journal/journalctl.c
parent16a4f265e456fc159ce147266224163d12516d3c (diff)
downloadsystemd-2de6b06b272b2b89035c67d879f330e3c70ba6b3.tar.gz
journalctl: make journalctl -g work as documented
Add "g" to optstring so both "--grep" and "-g" work with journalctl
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r--src/journal/journalctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 02715142e9..e0ad0e1d11 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) {