Re: [libvirt] [PATCH v2] virsh: fix incorrect argument errors for long options

2013-04-30 Thread Ján Tomko
On 04/29/2013 10:48 PM, Eric Blake wrote: On 04/29/2013 11:27 AM, Ján Tomko wrote: For long options, print: * the option as specified by the user if it's unknown * the cannoncial long option if its argument is not s/cannonical/canonical/ ... a number (and should be) And for missing

[libvirt] [PATCH v2] virsh: fix incorrect argument errors for long options

2013-04-29 Thread Ján Tomko
For long options, print: * the option as specified by the user if it's unknown * the cannoncial long option if its argument is not a number (and should be) And for missing arguments, print both the short and the long option name. (Doing only one of those would require either parsing argv

Re: [libvirt] [PATCH v2] virsh: fix incorrect argument errors for long options

2013-04-29 Thread Eric Blake
On 04/29/2013 11:27 AM, Ján Tomko wrote: For long options, print: * the option as specified by the user if it's unknown * the cannoncial long option if its argument is not s/cannonical/canonical/ a number (and should be) And for missing arguments, print both the short and the long