From a46085d0550d4a8c36699c9a52f4c40640b5659f Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Sat, 5 Aug 2000 05:14:17 +0000 Subject: [PATCH] Pring usage when no arguments are supplied. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@5 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/avrprog.c | 5 +++++ 1 file changed, 5 insertions(+) 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':