This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients paolobenve, paul.j3
Date 2021-11-02.22:09:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635890954.51.0.0777395958973.issue45673@roundup.psfhosted.org>
In-reply-to
Content
https://bugs.python.org/issue9338
argparse optionals with nargs='?', '*' or '+' can't be followed by positionals

As you can see this is an old issue, but still too big for a quick fix.

As a general rule, don't use `nargs` like this where there's ambiguity as to how many values will be allocated to the argument.
History
Date User Action Args
2021-11-02 22:09:14paul.j3setrecipients: + paul.j3, paolobenve
2021-11-02 22:09:14paul.j3setmessageid: <1635890954.51.0.0777395958973.issue45673@roundup.psfhosted.org>
2021-11-02 22:09:14paul.j3linkissue45673 messages
2021-11-02 22:09:14paul.j3create