]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: make 'help' command ignore spurious options
authorCole Robinson <crobinso@redhat.com>
Sun, 5 Aug 2012 22:13:18 +0000 (18:13 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 13 Aug 2012 19:33:44 +0000 (15:33 -0400)
commit86157b594f04664a99bdbb60273f337317c1b5a8
tree584490d54d3fb7f2f57370560e06dadd0d8d2d6b
parentd2f971390ef270a73d87c90e3e70278021faf341
virsh: make 'help' command ignore spurious options

Similar to the previous patch, prepending 'help' to a partial
command string doesn't cut us any slack.

$ virsh help pool-define-as --name foo --type dir
error: command 'help' doesn't support option --name

This patch adds a few hacks to make 'help' ignore everything after the
first data bit, so the above command shows help output for pool-define-as.
tools/virsh.c