diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2005-02-19 19:01:15 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2005-02-19 19:01:15 +0000 |
commit | 26c62704ae1fa66156711f1c85a6f73840913f9b (patch) | |
tree | 930de02ada57740fb45f25ad31c3ece755f2cd4a /userspace/ebtables2/ebtablesu.c | |
parent | 792682517a43b949c0b4b90237289cbb662e00ea (diff) |
give help if no options are given
Diffstat (limited to 'userspace/ebtables2/ebtablesu.c')
-rw-r--r-- | userspace/ebtables2/ebtablesu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/userspace/ebtables2/ebtablesu.c b/userspace/ebtables2/ebtablesu.c index cd86783..1fed0c1 100644 --- a/userspace/ebtables2/ebtablesu.c +++ b/userspace/ebtables2/ebtablesu.c @@ -35,7 +35,8 @@ int main(int argc, char *argv[]) return -1; } else if (argc == 1) { fprintf(stderr, "At least one argument is needed.\n"); - return -1; + print_help(); + exit(0); } for (i = 0; i < argc; i++) |