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:
parent
52ae174073
commit
324753a80c
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue