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

Michal Privoznik mprivozn at redhat.com
Tue Apr 23 14:25:54 UTC 2013


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:

> $ virsh ---debu
> error: unsupported option '---debu'. See --help.
> $ virsh --debu c
> error: option --debu takes a numeric argument
> ---

Michal




More information about the libvir-list mailing list