summaryrefslogtreecommitdiffstats
path: root/src/stdio-bridge/stdio-bridge.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-12-04 05:11:25 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2017-12-04 05:11:25 +0100
commit8b2c2abc89a98bd715a7c2054986c51a7a6fb403 (patch)
tree28acb1902f5c72717b5c16f6470d86d0084b0aa2 /src/stdio-bridge/stdio-bridge.c
parentMerge pull request #7534 from marcusfolkesson/helptext (diff)
downloadsystemd-8b2c2abc89a98bd715a7c2054986c51a7a6fb403.tar.xz
systemd-8b2c2abc89a98bd715a7c2054986c51a7a6fb403.zip
stdio-bridge: add missing option
Diffstat (limited to 'src/stdio-bridge/stdio-bridge.c')
-rw-r--r--src/stdio-bridge/stdio-bridge.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/stdio-bridge/stdio-bridge.c b/src/stdio-bridge/stdio-bridge.c
index f523ff2238..4c099990ed 100644
--- a/src/stdio-bridge/stdio-bridge.c
+++ b/src/stdio-bridge/stdio-bridge.c
@@ -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;