]> xenbits.xensource.com Git - libvirt.git/commit
virsh: domain: Fix option handling in domxml-to-native
authorPeter Krempa <pkrempa@redhat.com>
Tue, 10 Oct 2017 15:19:10 +0000 (17:19 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 24 Oct 2017 09:21:27 +0000 (11:21 +0200)
commitf4973d1ea88b2e807fc2c52a5fc281a1c289d50e
treef20f483871b429d6d6e9c9000ad90f7146122910
parentf26636887fee11b3ecaa5c0a0734687cded8ed28
virsh: domain: Fix option handling in domxml-to-native

Commit fdeac7a05fdf85458d72e89efcfa0f444525aaad tried to fix the output
of 'virsh domxml-to-native --help' by switching types around. One of the
changes broke the option parser. VSH_OT_ARGV should be used only for
variable argument count, not to make the help generator look pretty.

The correct option type in this case is VSH_OT_STRING as it's not
mandatory now since it can be substituted by using --domain.

This makes --help for this command look incorrect, but the parser works
as it should.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1494400
tools/virsh-domain.c