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

Eric Blake eblake at redhat.com
Tue Feb 11 16:34:26 UTC 2014


On 02/11/2014 08:42 AM, Cole Robinson wrote:

> 
> 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.

This part is not as problematic as you think.  It is valid to add
'--conn' as an explicit long option name synonym of '--connect' at the
same time you add the new '--connxyz', so that --conn remains
unambiguous as the abbreviation for --connect.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20140211/f3dac8f8/attachment.sig>


More information about the virt-tools-list mailing list