projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4bd71c
)
conf: fix --help handling
author
David Herrmann
<dh.herrmann@googlemail.com>
Fri, 23 Mar 2012 16:41:52 +0000
(17:41 +0100)
committer
David Herrmann
<dh.herrmann@googlemail.com>
Fri, 23 Mar 2012 16:41:52 +0000
(17:41 +0100)
Handle --help same way as -h.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/conf.c
patch
|
blob
|
history
diff --git
a/src/conf.c
b/src/conf.c
index
5999df2
..
0476cdb
100644
(file)
--- a/
src/conf.c
+++ b/
src/conf.c
@@
-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 },