[issue14074] argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple
Raymond Hettinger
report at bugs.python.org
Tue Jan 28 02:52:46 EST 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
-0 on going forward with this. AFAICT, no one has requested tuple support (the OP just wanted better error handling). And more fined grained control can already be had just by specifying separate positional arguments.
Paul suggested that it may be a better plan to just disallow tuple metavars and to give a better error message as the OP suggested. That makes sense to me.
----------
nosy: +rhettinger
priority: high -> normal
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue14074>
_______________________________________
More information about the Python-bugs-list
mailing list