[issue14074] argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple

hai shi report at bugs.python.org
Sun Feb 2 00:44:04 EST 2020


hai shi <shihai1991 at 126.com> added the comment:

> Given that tuple metavars currently doesn't work, there is no backward compatibility issue.  What is being proposed is to give more friendly error messages.

Got it, thanks.

> 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.

+1

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue14074>
_______________________________________


More information about the Python-bugs-list mailing list