[Python-Dev] Python 2.7b1 and argparse's version action
"Martin v. Löwis"
martin at v.loewis.de
Wed Apr 21 00:31:14 CEST 2010
Nick Coghlan wrote:
> Tobias Herp wrote:
>> No deprecation or removal of the simple and convenient 'version'
>> argument is needed for this. Just omit it, and build your version
>> action yourself. But please notice that there are others who appreciate
>> this simple way to do it and don't need more.
>
> One Obvious Way.
>
> In this case, the ambiguity of the "version=" argument is sufficient to
> elevate it to the level of "attractive nuisance" (particularly given the
> legacy behaviour of conflicting with typical verbosity options). The
> default help for the action needs to be fixed, and there are a couple of
> documentation tweaks to be made, but Steven's decision to remove the
> feature has a sound rationale.
Exactly my feelings. IMO, straight removal would be fine as well, but a
deprecation may be more user-friendly, wrt. the existing code base.
Regards,
Martin
More information about the Python-Dev
mailing list