]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virsh: simplify top-level option parsing
authorEric Blake <eblake@redhat.com>
Tue, 12 Oct 2010 21:49:13 +0000 (15:49 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 13 Oct 2010 13:52:33 +0000 (07:52 -0600)
commit5405cffcb4dc556159fa55be8a8e57e59df5d822
tree200244a05e01c75e770b317770101493b2795f08
parent227f5df8429c74fdf8680f98a81ac3e1e444e8d7
virsh: simplify top-level option parsing

This makes 'virsh --conn test:///default help help' work right;
previously, the abbreviation confused our hand-rolled option parsing.

* tools/virsh.c (vshParseArgv): Use getopt_long feature, rather
than (incorrectly) reparsing options ourselves.
tools/virsh.c