diff --git a/avrdude/avrprog.c b/avrdude/avrprog.c index 5898b946..9cd3cf2a 100644 --- a/avrdude/avrprog.c +++ b/avrdude/avrprog.c @@ -525,6 +525,11 @@ int main ( int argc, char * argv [] ) else progname = argv[0]; + if (argc == 1) { + usage(); + return 0; + } + while ((ch = getopt(argc,argv,"?efo:ru:")) != -1) { switch (ch) { case 'e':