[issue18943] argparse: default args in mutually exclusive groups
paul j3
report at bugs.python.org
Tue Mar 4 08:00:30 CET 2014
paul j3 added the comment:
I need to tweak the last patch so 'using_default' is also set when an "nargs='*'" positional is set to the '[]' default.
if action.default is not None:
value = action.default
+ using_default = True
else:
value = arg_strings
+ using_default = True # tweak
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18943>
_______________________________________
More information about the Python-bugs-list
mailing list