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

Cole Robinson crobinso at redhat.com
Tue Feb 11 15:42:40 UTC 2014


On 02/11/2014 10:39 AM, Giuseppe Scrivano wrote:
> Chen Hanxiao <chen_han_xiao at 126.com> writes:
> 
>> How about give --connect a shortcut?
>> It's not so convenient if using virt-xml editing LXC domain.
> 
> 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.

- Cole




More information about the virt-tools-list mailing list