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

Giuseppe Scrivano gscrivan at redhat.com
Tue Feb 11 15:50:20 UTC 2014


Cole Robinson <crobinso at redhat.com> 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




More information about the virt-tools-list mailing list