Pring usage when no arguments are supplied.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@5 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
6c5355c8ce
commit
a46085d055
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue