chiark / gitweb /
journalctl: properly parse --cursor= long getopt in addition to short -c
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Oct 2012 23:35:24 +0000 (01:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Oct 2012 23:35:24 +0000 (01:35 +0200)
src/journal/journalctl.c

index b6f9b2f..ec05c16 100644 (file)
@@ -150,7 +150,7 @@ static int parse_argv(int argc, char *argv[]) {
                 { "verify",       no_argument,       NULL, ARG_VERIFY       },
                 { "verify-key",   required_argument, NULL, ARG_VERIFY_KEY   },
                 { "disk-usage",   no_argument,       NULL, ARG_DISK_USAGE   },
-                { "cursor",       no_argument,       NULL, 'c'              },
+                { "cursor",       required_argument, NULL, 'c'              },
                 { NULL,           0,                 NULL, 0                }
         };