]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: make -h always give help
authorEric Blake <eblake@redhat.com>
Mon, 30 Apr 2012 20:19:11 +0000 (14:19 -0600)
committerCole Robinson <crobinso@redhat.com>
Thu, 7 Jun 2012 22:10:04 +0000 (18:10 -0400)
commit763f71e51f3933408c0de1e30d84f30c95a875a3
tree983c3da8d2aa155aed27ad13fc7bce5c2bc48cf0
parent180fb3b2b4962c37255a4158dbbaca7aa1561fee
virsh: make -h always give help

https://bugzilla.redhat.com/show_bug.cgi?id=817244 mentions that
unlike most other tools, where --help or --version prevent all
further parsing of all later options, virsh was strange in that
--version stopped parsing but --help tried to plow on to the end.
There was no rationale for this original implementation (since
2005!), so I think we can safely conform to common usage patterns.

* tools/virsh.c (main): Drop useless 'help' variable.
(cherry picked from commit 46e5d36b8998c53fbea9c589f618ae906103fec7)
tools/virsh.c