summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-02-15 15:56:15 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-02-15 15:56:15 +0100
commit2304918b8e82e57be87882c97dfc32c4848d68af (patch)
treed5210c31aeb83048529c56d1ef929f029b564753 /src/main.c
parentc4ef74420bc09b82146190870186fb067ac163e9 (diff)
downloadconntrack-tools-2304918b8e82e57be87882c97dfc32c4848d68af.tar.gz
conntrack-tools-2304918b8e82e57be87882c97dfc32c4848d68af.zip
conntrackd: display help information with `-h'
This patch also adds missing `-v' information to the manpage. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 82f0d27..239e0da 100644
--- a/src/main.c
+++ b/src/main.c
@@ -48,7 +48,8 @@ static const char usage_client_commands[] =
" -n, request resync with other node (only FT-FW and NOTRACK modes)\n"
" -x, dump cache in XML format (requires -i or -e)\n"
" -t, reset the kernel timeout (see PurgeTimeout clause)\n"
- " -v, display conntrackd version\n";
+ " -v, display conntrackd version\n"
+ " -h, display this help information\n";
static const char usage_options[] =
"Options:\n"
@@ -240,6 +241,9 @@ int main(int argc, char *argv[])
case 'v':
show_version();
exit(EXIT_SUCCESS);
+ case 'h':
+ show_usage(argv[0]);
+ exit(EXIT_SUCCESS);
default:
show_usage(argv[0]);
fprintf(stderr, "Unknown option: %s\n", argv[i]);