summaryrefslogtreecommitdiff
path: root/src/uanytun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uanytun.c')
-rw-r--r--src/uanytun.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uanytun.c b/src/uanytun.c
index d7873d8..6e276bf 100644
--- a/src/uanytun.c
+++ b/src/uanytun.c
@@ -338,8 +338,11 @@ int main(int argc, char* argv[])
if(ret == -2) {
fprintf(stderr, "memory error on options_parse, exitting\n");
}
+ if(ret == -3) {
+ fprintf(stderr, "syntax error: -4 and -6 are mutual exclusive\n\n");
+ }
- if(ret == -1 || ret > 0)
+ if(ret != -2)
options_print_usage();
options_clear(&opt);