give help if no options are given
authorBart De Schuymer <bdschuym@pandora.be>
Sat, 19 Feb 2005 19:01:15 +0000 (19:01 +0000)
committerBart De Schuymer <bdschuym@pandora.be>
Sat, 19 Feb 2005 19:01:15 +0000 (19:01 +0000)
ebtablesu.c

index cd86783..1fed0c1 100644 (file)
@@ -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++)