]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
stdio-bridge: add missing option
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Dec 2017 04:11:25 +0000 (13:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Dec 2017 04:11:25 +0000 (13:11 +0900)
src/stdio-bridge/stdio-bridge.c

index f523ff22389faf2a192c0f17cb6c1ea26b3d33ea..4c099990ed627a4254c2657d9987d52fcb09f413 100644 (file)
@@ -57,9 +57,10 @@ static int parse_argv(int argc, char *argv[]) {
         };
 
         static const struct option options[] = {
-                { "help",            no_argument,       NULL, 'h'     },
-                { "bus-path",        required_argument, NULL, 'p'     },
-                { NULL,              0,                 NULL, 0       }
+                { "help",            no_argument,       NULL, 'h'         },
+                { "version",         no_argument,       NULL, ARG_VERSION },
+                { "bus-path",        required_argument, NULL, 'p'         },
+                {},
         };
 
         int c;