qemu-option: Avoid has_help_option() in qemu_opts_parse_noisily()
commit56a9efa199a603b77e7f2bd0e84e11e897bf7473
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Apr 2020 07:49:24 +0000 (15 09:49 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 29 Apr 2020 06:01:51 +0000 (29 08:01 +0200)
treeeef65a2a5c6f6077c796d471506f1f8bdc45d174
parent59d27ebc446baec4a972cc146df732910b5aa2de
qemu-option: Avoid has_help_option() in qemu_opts_parse_noisily()

When opts_parse() sets @invalidp to true, qemu_opts_parse_noisily()
uses has_help_option() to decide whether to print help.  This parses
the input string a second time.

Easy to avoid: replace @invalidp by @help_wanted.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200415074927.19897-7-armbru@redhat.com>
util/qemu-option.c