[PATCH 1/4] Make -d option consistent.
Richard Kettlewell
rjk at terraraq.org.uk
Wed Jul 6 21:19:24 BST 2011
From: Richard Kettlewell <rjk at greenend.org.uk>
Previously --debug required an argument and -d did not. The argument
was in any case ignored.
Signed-off-by: Richard Kettlewell <rjk at greenend.org.uk>
---
secnet.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/secnet.c b/secnet.c
index 36750ec..1a4e8fd 100644
--- a/secnet.c
+++ b/secnet.c
@@ -62,7 +62,7 @@ static void parse_options(int argc, char **argv)
{"nodetach", 0, 0, 'n'},
{"silent", 0, 0, 'f'},
{"quiet", 0, 0, 'f'},
- {"debug", 1, 0, 'd'},
+ {"debug", 0, 0, 'd'},
{"config", 1, 0, 'c'},
{"just-check-config", 0, 0, 'j'},
{"sites-key", 1, 0, 's'},
@@ -87,7 +87,7 @@ static void parse_options(int argc, char **argv)
" -s, --sites-key=name configuration key that "
"specifies active sites\n"
" -n, --nodetach do not run in background\n"
- " -d, --debug=item,... set debug options\n"
+ " -d, --debug output debug messages\n"
" --help display this help and exit\n"
" --version output version information "
"and exit\n"
--
1.6.4.2
More information about the sgo-software-discuss
mailing list