mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
server/tests: invalid-option: print the bad argument
optind points to the next argument to parse.
This commit is contained in:
parent
694f4b9e57
commit
cbcd9eea36
@ -892,7 +892,7 @@ void spice_test_config_parse_args(int argc, char **argv)
|
||||
while ((val = getopt_long(argc, argv, "", options, &option_index)) != -1) {
|
||||
switch (val) {
|
||||
case '?':
|
||||
printf("unrecognized option %s", argv[optind]);
|
||||
printf("unrecognized option '%s'\n", argv[optind - 1]);
|
||||
goto invalid_option;
|
||||
case 0:
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user