Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(56270)

#15112: argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

Can't Edit
Can't Publish+Mail
Start Review
Created:
6 years, 10 months ago by waltermundt
Modified:
3 years, 2 months ago
Reviewers:
vadmium+py
CC:
bethard, tim3d.junk_gmail.com, devurandom_gmx.net, cjerdonek, tshepang, Martin Panter, paul.j3, waltermundt_codethink.info, leolchat_gmail.com
Visibility:
Public.

Patch Set 1 #

Patch Set 2 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
Lib/argparse.py View 1 1 chunk +13 lines, -0 lines 0 comments Download
Lib/test/test_argparse.py View 1 1 chunk +70 lines, -0 lines 2 comments Download

Messages

Total messages: 2
Martin Panter
https://bugs.python.org/review/15112/diff/9066/Lib/test/test_argparse.py File Lib/test/test_argparse.py (right): https://bugs.python.org/review/15112/diff/9066/Lib/test/test_argparse.py#newcode1264 Lib/test/test_argparse.py:1264: failures = ['', # the following arguments are required: ...
3 years, 2 months ago #1
Martin Panter
3 years, 2 months ago #2
https://bugs.python.org/review/15112/diff/9066/Lib/test/test_argparse.py
File Lib/test/test_argparse.py (right):

https://bugs.python.org/review/15112/diff/9066/Lib/test/test_argparse.py#newc...
Lib/test/test_argparse.py:1264: failures = ['',  # the following arguments are
required: cmd, rest
On 2016/03/30 01:49:36, vadmium wrote:
> Shouldn’t “rest” be optional (elective)? Only one position is required, for
> “cmd”.

Just noticed this is actually the error message given, and it happens without
the patch applied, so would be a separate bug.
Sign in to reply to this message.

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+