Pring usage when no arguments are supplied.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@5 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Brian S. Dean 2000-08-05 05:14:17 +00:00
parent 52ae174073
commit 324753a80c
1 changed files with 5 additions and 0 deletions

View File

@ -525,6 +525,11 @@ int main ( int argc, char * argv [] )
else else
progname = argv[0]; progname = argv[0];
if (argc == 1) {
usage();
return 0;
}
while ((ch = getopt(argc,argv,"?efo:ru:")) != -1) { while ((ch = getopt(argc,argv,"?efo:ru:")) != -1) {
switch (ch) { switch (ch) {
case 'e': case 'e':