This replaces the QemuOpts-based help code for --object in the storage daemon with code based on the keyval parser.
v3: - Always parse help options, no matter if the caller implements help or not. If it doesn't, return an error. [Markus] - Document changes to the keyval parser grammar [Markus] - Support both 'help' and '?' [Eric] - Test case fixes [Eric] - Improved documentation of user_creatable_print_help(_from_qdict) [Markus] v2: - Fixed double comma by reusing the existing key and value parsers [Eric] - More tests to cover the additional cases Kevin Wolf (4): keyval: Parse help options qom: Factor out helpers from user_creatable_print_help() qom: Add user_creatable_print_help_from_qdict() qemu-storage-daemon: Remove QemuOpts from --object parser include/qemu/help_option.h | 5 + include/qemu/option.h | 2 +- include/qom/object_interfaces.h | 21 ++- qapi/qobject-input-visitor.c | 2 +- qom/object_interfaces.c | 99 ++++++++----- storage-daemon/qemu-storage-daemon.c | 15 +- tests/test-keyval.c | 205 +++++++++++++++++++-------- util/keyval.c | 54 ++++++- 8 files changed, 280 insertions(+), 123 deletions(-) -- 2.25.4