summaryrefslogtreecommitdiff
path: root/ebtablesu.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2005-02-19 19:01:15 +0000
committerBart De Schuymer <bdschuym@pandora.be>2005-02-19 19:01:15 +0000
commit0f060c2724990447986d8776272458c74d91ded2 (patch)
tree618353710e08a78f04610b5755580446c3924d2f /ebtablesu.c
parent58ae0404e253034df01a03ae31ca9d23a1e16636 (diff)
downloadebtables-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.c3
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++)