Re: [PATCH] virsh: don't shorten incorrect arguments

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

 



On 04/23/2013 04:25 PM, Michal Privoznik wrote:
> On 23.04.2013 16:08, Ján Tomko wrote:
>> https://bugzilla.redhat.com/show_bug.cgi?id=949373
>>
>> Print the whole incorrect argument as specified by the user
>> instead of the short option.
>>
>> Before:
>> $ virsh --debu
>> error: option '-d' requires an argument
>> $ virsh ---debu
>> error: unsupported option '-
>> $ virsh --debu c
>> error: option -d takes a numeric argument
>>
>> After:
>> $ virsh --debu
>> error: option '--debu' requires an argument
> 
> This doesn't make any sense at all. --debu should error out so as the
> next example of yours:

It's just a shortened form of '--debug'. This behavior is consistent
with many other programs using long options since it's what GNU
getopt_long does.

Jan

--
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]