qemu-e2k/bsd-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
..
freebsd bsd-user: FreeBSD update 2009-10-18 15:16:08 +00:00
i386 bsd-user: FreeBSD update 2009-10-18 15:16:08 +00:00
netbsd
openbsd
sparc
sparc64
x86_64 Fix spelling in comments, documentation and messages 2011-12-14 11:09:44 +00:00
bsd-mman.h
bsdload.c bsd_user: Fix potential null pointer dereference 2011-12-10 17:02:05 +00:00
elfload.c elf: Improve symbol lookup (optimize, fix for bsd-user) 2012-01-10 18:40:09 +01:00
errno_defs.h
main.c Support 'help' as a synonym for '?' in command line options 2012-08-02 13:16:42 -05:00
Makefile.objs build: move *-user/ objects to nested Makefile.objs 2012-06-07 07:17:33 +02:00
mmap.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
qemu-types.h linux-user: Move abi_* typedefs into qemu-types.h 2008-12-08 18:12:04 +00:00
qemu.h Rename CPUState -> CPUArchState 2012-03-14 22:20:27 +01:00
signal.c Rename CPUState -> CPUArchState 2012-03-14 22:20:27 +01:00
strace.c bsd-users: fix strace 2009-07-17 17:48:03 +00:00
syscall_defs.h bsd-user: FreeBSD update 2009-10-18 15:16:08 +00:00
syscall.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
uaccess.c fix build warnings 2009-07-17 17:48:01 +00:00