]> 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)
committerEric Blake <eblake@redhat.com>
Tue, 1 May 2012 20:58:14 +0000 (14:58 -0600)
commit46e5d36b8998c53fbea9c589f618ae906103fec7
tree7141e1caff5ddde72fc28592a419ed17148f45e1
parenteefb881d4683d50882b43e5b28b0e94657cd0c9c
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.
tools/virsh.c