forked from Imagelibrary/binutils-gdb
sim: parse_args: polish getopt error message
The cris sim hit a few failures after the recent getopt logic, and the expected output showed a few ways we can improve things to better match other utils.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2016-01-04 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* sim-options.c (sim_parse_args): Tweak getopt error message.
|
||||||
|
|
||||||
2016-01-04 Mike Frysinger <vapier@gentoo.org>
|
2016-01-04 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* acinclude.m4 (sim-bswap): Delete.
|
* acinclude.m4 (sim-bswap): Delete.
|
||||||
|
|||||||
@@ -616,7 +616,7 @@ sim_parse_args (SIM_DESC sd, char **argv)
|
|||||||
badopt = argv[optind - 1];
|
badopt = argv[optind - 1];
|
||||||
|
|
||||||
sim_io_eprintf (sd,
|
sim_io_eprintf (sd,
|
||||||
"%s: unrecognized option: %s\n"
|
"%s: unrecognized option '%s'\n"
|
||||||
"Use --help for a complete list of options.\n",
|
"Use --help for a complete list of options.\n",
|
||||||
STATE_MY_NAME (sd), badopt);
|
STATE_MY_NAME (sd), badopt);
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2016-01-04 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* asm/opterr1.ms: Update expected output.
|
||||||
|
* asm/opterr2.ms: Likewise.
|
||||||
|
|
||||||
2015-12-25 Mike Frysinger <vapier@gentoo.org>
|
2015-12-25 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* asm/io1.ms: Update expected output.
|
* asm/io1.ms: Update expected output.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# mach: crisv3 crisv8 crisv10 crisv32
|
# mach: crisv3 crisv8 crisv10 crisv32
|
||||||
# xerror:
|
# xerror:
|
||||||
# output: *: unrecognized option [`']--cris-stats=xyz'\n
|
# output: *: unrecognized option [`']--cris-stats=xyz'\nUse --help for a complete list of options.\n
|
||||||
# sim: --cris-stats=xyz
|
# sim: --cris-stats=xyz
|
||||||
.include "nopv32t.ms"
|
.include "nopv32t.ms"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# mach: crisv3 crisv8 crisv10 crisv32
|
# mach: crisv3 crisv8 crisv10 crisv32
|
||||||
# xerror:
|
# xerror:
|
||||||
# output: *: unrecognized option [`']--cris-xyz'\n
|
# output: *: unrecognized option [`']--cris-xyz'\nUse --help for a complete list of options.\n
|
||||||
# sim: --cris-xyz
|
# sim: --cris-xyz
|
||||||
.include "nopv32t.ms"
|
.include "nopv32t.ms"
|
||||||
|
|||||||
Reference in New Issue
Block a user