conf: fix --help handling
Handle --help same way as -h. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
1 parent
a4bd71cd0c
commit
c8b247785c
1 file changed
+1
-1
+1
-1
@@ -59,7 +59,7 @@ int conf_parse_argv(int argc, char **argv)
|
||||
int show_help = 0;
|
||||
char short_options[] = ":hv";
|
||||
struct option long_options[] = {
|
||||
{ "help", no_argument, &show_help, 1 },
|
||||
{ "help", no_argument, NULL, 'h' },
|
||||
{ "verbose", no_argument, NULL, 'v' },
|
||||
{ "debug", no_argument, &conf_global.debug, 1 },
|
||||
{ NULL, 0, NULL, 0 },
|
||||
|
||||
Reference in new issue
Block a user