diff options
author | Christian Pointner <equinox@anytun.org> | 2009-12-22 21:52:59 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-12-22 21:52:59 +0000 |
commit | 528213cc8c44ad62e59631ba816e7b82ef7a6e02 (patch) | |
tree | 6a2c02aa85645b5c7e151339f9aef97bd7e2abb1 /src/uanytun.c | |
parent | updated ChangeLog (diff) |
added version info into binary
Diffstat (limited to 'src/uanytun.c')
-rw-r--r-- | src/uanytun.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/uanytun.c b/src/uanytun.c index 0e36781..ba64bc7 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -336,10 +336,16 @@ int main(int argc, char* argv[]) if(ret == -4) { fprintf(stderr, "syntax error: unknown role name\n\n"); } + if(ret == -5) { + options_print_version(); + } - if(ret != -2) + if(ret != -2 && ret != -5) options_print_usage(); + if(ret == -1 || ret == -5) + ret = 0; + options_clear(&opt); log_close(); exit(ret); |