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 | 0f060c2724990447986d8776272458c74d91ded2 (patch) | |
tree | 618353710e08a78f04610b5755580446c3924d2f /ebtablesu.c | |
parent | 58ae0404e253034df01a03ae31ca9d23a1e16636 (diff) | |
download | ebtables-0f060c2724990447986d8776272458c74d91ded2.tar.gz ebtables-0f060c2724990447986d8776272458c74d91ded2.tar.bz2 ebtables-0f060c2724990447986d8776272458c74d91ded2.zip |
give help if no options are given
Diffstat (limited to 'ebtablesu.c')
-rw-r--r-- | ebtablesu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ebtablesu.c b/ebtablesu.c index cd86783..1fed0c1 100644 --- a/ebtablesu.c +++ b/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++) |