[issue29632] argparse values for action in add_argument() should be flags instead of (or in addition to) strings

R. David Murray report at bugs.python.org
Thu Feb 23 10:51:11 EST 2017


R. David Murray added the comment:

The obvious thing to do would be to make the Action subclasses have public names.  I personally would continue to use the strings, though, as they are easier to type.  (The same would be true if an enum were introduced (that I'd continue to use the stings because they are easier to type :), since they would need to be namespaced (argparse.action.store_true, for example).)

I can see some potential value in exposing the action subclasses, but I'm not sure if it is worth it.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29632>
_______________________________________


More information about the Python-bugs-list mailing list