[issue8538] Add FlagAction to argparse
Steven Bethard
report at bugs.python.org
Sun Jul 22 22:08:22 CEST 2012
Steven Bethard <steven.bethard at gmail.com> added the comment:
On the off chance that someone was waiting for feedback from me, I'll say:
(1) A simple boolean --foo/--no-foo action seems useful to me. I would probably call it BooleanOptionalAction rather than FlagAction. (Almost anything could be considered a "flag".)
(2) At the moment, argparse doesn't supply any actions, so I don't think we should make a separate namespace for them. If it starts to grow a list of such actions, we can add a separate namespace later. (And given that the name will end with "Action", I think it should be pretty clear without the namespace.)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8538>
_______________________________________
More information about the Python-bugs-list
mailing list