]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Convert '<cmd> --help' to 'help <cmd>'
authorCole Robinson <crobinso@redhat.com>
Sat, 11 Aug 2012 18:45:45 +0000 (14:45 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 13 Aug 2012 19:33:44 +0000 (15:33 -0400)
commitd2f971390ef270a73d87c90e3e70278021faf341
treed6c18016e906502e2289fe77a51ec526ac278a03
parente7d1bdfbd20987a6f2bdeec4b1bc4e38ce24b64d
virsh: Convert '<cmd> --help' to 'help <cmd>'

Often times I find myself halfway through typing a long command when
I want to see 'help' output. I instinctively append '--help' to the
command I'm typing, only to get an error:

    $ virsh vol-create-as foo --help
    error: command 'vol-create-as' doesn't support option --help

This patch makes --help work in a pretty hacky way. One missing piece
here is that --help isn't listed as an option in the actual 'help <cmd>'
output, but maybe this can be a starting point for someone.
tools/virsh.c