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

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



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

Attachment: signature.asc
Description: OpenPGP digital signature


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