[libvirt] [PATCH v2] virsh: distinguish errors between missing argument and wrong option
Guannan Ren
gren at redhat.com
Wed Feb 20 02:15:54 UTC 2013
On 02/20/2013 12:33 AM, Eric Blake wrote:
> 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.
>
Thanks and pushed
Guannan
More information about the libvir-list
mailing list