]> Git Repo - qemu.git/commit
qemu-option: add help fallback to print the list of options
authorMarc-André Lureau <[email protected]>
Wed, 15 Aug 2018 19:50:50 +0000 (21:50 +0200)
committerMarc-André Lureau <[email protected]>
Fri, 5 Oct 2018 12:14:22 +0000 (16:14 +0400)
commite05979d0d7362d25275adcc73ad082bf66b9b018
tree173a8e004845687916ba4307e00e758a66519a09
parent85e33a2818f46ee023c8729252c797f125744d20
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 <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
util/qemu-option.c
This page took 0.025782 seconds and 4 git commands to generate.