summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-08 17:44:36 -0400
committerRay Strode <rstrode@redhat.com>2008-06-08 17:44:36 -0400
commitbfaa6f7c60dabbdfe35abef344f2fad833d43f13 (patch)
treeca505edf543105a8ba40130040db631f71bfbc8c /src/client
parent253487ba7cb8dd9120a4717c71b773e2b3ec9662 (diff)
downloadplymouth-bfaa6f7c60dabbdfe35abef344f2fad833d43f13.tar.gz
plymouth-bfaa6f7c60dabbdfe35abef344f2fad833d43f13.tar.xz
plymouth-bfaa6f7c60dabbdfe35abef344f2fad833d43f13.zip
Add new FLAG type to command parser api
It's just like boolean but doesn't advertise that it can take the form --flag=false. This makes the --help output for --help say --help instead of --help={true|false}
Diffstat (limited to 'src/client')
-rw-r--r--src/client/plymouth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/plymouth.c b/src/client/plymouth.c
index d544e9c..d4d04b2 100644
--- a/src/client/plymouth.c
+++ b/src/client/plymouth.c
@@ -89,7 +89,7 @@ main (int argc,
command_parser = ply_command_parser_new ("plymouth", "Boot splash control client");
ply_command_parser_add_options (command_parser,
- "help", "This help message", PLY_COMMAND_OPTION_TYPE_BOOLEAN,
+ "help", "This help message", PLY_COMMAND_OPTION_TYPE_FLAG,
"quit", "Tell boot daemon to quit", PLY_COMMAND_OPTION_TYPE_BOOLEAN,
"sysinit", "Tell boot daemon root filesystem is mounted read-write", PLY_COMMAND_OPTION_TYPE_BOOLEAN,
"show-splash", "Show splash screen", PLY_COMMAND_OPTION_TYPE_BOOLEAN,