mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
cliparser: ignore extra spaces between options
This commit is contained in:
parent
1b0875dd78
commit
0339667e9e
1 changed files with 4 additions and 1 deletions
|
@ -4275,7 +4275,10 @@ static void arg_parse_untagged(int argc,
|
|||
/* register an error for each unused argv[] entry */
|
||||
while (optind < argc) {
|
||||
/*printf("arg_parse_untagged(): argv[%d]=\"%s\" not consumed\n",optind,argv[optind]);*/
|
||||
arg_register_error(endtable, endtable, ARG_ENOMATCH, argv[optind++]);
|
||||
if (argv[optind][0] != '\x00') {
|
||||
arg_register_error(endtable, endtable, ARG_ENOMATCH, argv[optind]);
|
||||
}
|
||||
optind++;
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue