Re: [PATCH v2] virsh: distinguish errors between missing argument and wrong option

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

 



On 02/19/2013 01:50 AM, Guannan Ren wrote:
> Specifying ':' to suppress the error messages printed by getopt().
> Then, distinguish the two types of errors.
> 
> Before:
>  # virsh -c
>    virsh: option requires an argument -- 'c'
>    error: unsupported option '-?'. See --help.
> 
> After:
>  # virsh -c
>    error: option '-c' requires an argument
> 
>  # virsh -x
>    error: unsupported option '-x'. See --help.

ACK.

-- 
Eric Blake   eblake redhat com    +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]