• Peter Maydell's avatar
    Support 'help' as a synonym for '?' in command line options · c8057f95
    Peter Maydell authored
    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: default avatarPeter Maydell <peter.maydell@linaro.org>
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    c8057f95
Name
Last commit
Last update
..
freebsd Loading commit data...
i386 Loading commit data...
netbsd Loading commit data...
openbsd Loading commit data...
sparc Loading commit data...
sparc64 Loading commit data...
x86_64 Loading commit data...
Makefile.objs Loading commit data...
bsd-mman.h Loading commit data...
bsdload.c Loading commit data...
elfload.c Loading commit data...
errno_defs.h Loading commit data...
main.c Loading commit data...
mmap.c Loading commit data...
qemu-types.h Loading commit data...
qemu.h Loading commit data...
signal.c Loading commit data...
strace.c Loading commit data...
syscall.c Loading commit data...
syscall_defs.h Loading commit data...
uaccess.c Loading commit data...