[libvirt] [PATCH 3/3] virsh: make 'help' command ignore spurious options

Eric Blake eblake at redhat.com
Mon Aug 13 17:40:11 UTC 2012


On 08/13/2012 08:28 AM, Cole Robinson wrote:
> 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 | 13 ++++++++++---
>  1 file changed, 10 insertions(+), 3 deletions(-)

Also passed my testing.  ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120813/8b9badb5/attachment-0001.sig>


More information about the libvir-list mailing list