Re: [virt-manager PATCH] virt-install: add "-c" as short option of "--connect"

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

 



Cole Robinson <crobinso@xxxxxxxxxx> writes:

>> not as -c but you can avoid typing 3 characters if you use "--conn".
>> It is the shortest prefix that is not ambiguous with other options (if
>> you try typing --c, --co, --con, you will see the list of options that
>> starts by that).
>> 
>
> This is actually one feature I hate of optparse: someone could have a valid
> command line using --conn, but if we ever added a new command line option that
> also started with --conn, a previously working command line would now be
> broken due to ambiguous arguments. I've never heard complaints about it in
> practice but it's something to consider.

That is true.  This feature should not be used in scripts but only in
interactive mode, when the user can quickly fix the command line.

Giuseppe

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux