mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-06-02 09:46:34 +03:00
Show usage text before invalid short-option error
This commit is contained in:
@@ -1010,8 +1010,9 @@ int main(int argc, char *argv[]) {
|
||||
break;
|
||||
|
||||
default:
|
||||
pmsg_error("invalid option -%c\n\n", ch);
|
||||
usage();
|
||||
msg_error("\n");
|
||||
pmsg_error("invalid option -%c\n", ch);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user