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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]