From bfaa6f7c60dabbdfe35abef344f2fad833d43f13 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Sun, 8 Jun 2008 17:44:36 -0400 Subject: 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} --- src/client/plymouth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client') 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, -- cgit