summary refs log tree commit diff stats
path: root/scripts
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2018-08-15 21:50:50 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2018-10-05 16:14:22 +0400
commite05979d0d7362d25275adcc73ad082bf66b9b018 (patch)
tree173a8e004845687916ba4307e00e758a66519a09 /scripts
parent85e33a2818f46ee023c8729252c797f125744d20 (diff)
downloadfocaccia-qemu-e05979d0d7362d25275adcc73ad082bf66b9b018.tar.gz
focaccia-qemu-e05979d0d7362d25275adcc73ad082bf66b9b018.zip
qemu-option: add help fallback to print the list of options
QDev options accept 'help' (or '?', but that's problematic with shell
globbing) in the list of parameters, which is handy to list the
available options.

Unfortunately, this isn't built in QemuOpts. qemu_opts_parse_noisily()
seems to be the common path for command line options, so place a
fallback to print help, listing the available options.

This is quite handy, for example with qemu "-spice help".

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions