qemu-irix/linux-user
Peter Maydell c8057f951d Support 'help' as a synonym for '?' in command line options
For command line options which permit '?' meaning 'please list the
permitted values', add support for 'help' as a synonym, by abstracting
the check out into a helper function.

This change means that in some cases where we were being lazy in
our string parsing, "?junk" will now be rejected as an invalid option
rather than being (undocumentedly) treated the same way as "?".

Update the documentation to use 'help' rather than '?', since '?'
is a shell metacharacter and thus prone to fail confusingly if there
is a single character filename in the current working directory and
the '?' has not been escaped. It's therefore better to steer users
towards 'help', though '?' is retained for backwards compatibility.

We do not, however, update the output of the system emulator's -help
(or any documentation autogenerated from the qemu-options.hx which
is the source of the -help text) because libvirt parses our -help
output and will break. At a later date when QEMU provides a better
interface so libvirt can avoid having to do this, we can update the
-help text too.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-08-02 13:16:42 -05:00
..
alpha
arm build: move *-user/ objects to nested Makefile.objs 2012-06-07 07:17:33 +02:00
cris
i386
m68k linux-user: Don't overuse CPUState 2012-03-14 22:20:24 +01:00
microblaze
mips
mips64
mipsn32
openrisc target-or32: Add linux syscall, signal and termbits 2012-07-27 21:13:05 +00:00
ppc
s390x
sh4
sparc
sparc64
unicore32
x86_64
Makefile.objs build: move *-user/ objects to nested Makefile.objs 2012-06-07 07:17:33 +02:00
cpu-uname.c target-arm: Remove ARM_CPUID_* macros 2012-06-20 12:13:28 +00:00
cpu-uname.h
elfload.c target-or32: Add linux user support 2012-07-27 21:13:05 +00:00
errno_defs.h
flat.h
flatload.c
ioctls.h linux-user: Add ioctl for BLKBSZGET 2012-04-06 18:49:58 +03:00
linux_loop.h
linuxload.c
m68k-sim.c
main.c Support 'help' as a synonym for '?' in command line options 2012-08-02 13:16:42 -05:00
mmap.c linux-user: Fix stale tbs after mmap 2012-05-19 15:49:40 +00:00
qemu-types.h
qemu.h Userspace ARM BE8 support 2012-04-06 19:25:57 +03:00
signal.c Replace 'struct siginfo' with 'siginfo_t'. 2012-08-01 08:54:07 -05:00
socket.h
strace.c
strace.list
syscall.c target-or32: Add linux user support 2012-07-27 21:13:05 +00:00
syscall_defs.h target-or32: Add linux user support 2012-07-27 21:13:05 +00:00
syscall_types.h linux-user: add struct old_dev_t compat 2012-04-06 18:49:58 +03:00
target_flat.h
uaccess.c
vm86.c