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 Anthony Sottile
Recipients Anthony Sottile, bethard, eric.fahlgren
Date 2019-01-19.21:19:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547932788.51.0.808090830872.issue35785@roundup.psfhosted.org>
In-reply-to
Content
Can you provide a reproducer? I'm having difficulty reproducing with this script:

import argparse

p = argparse.ArgumentParser()
p.add_argument('--foo', nargs=None)
args = p.parse_args()


$ python3.7 --version
Python 3.7.2
$ python3.7 t.py --foo
usage: t.py [-h] [--foo FOO]
t.py: error: argument --foo: expected one argument
History
Date User Action Args
2019-01-19 21:19:50Anthony Sottilesetrecipients: + Anthony Sottile, bethard, eric.fahlgren
2019-01-19 21:19:48Anthony Sottilesetmessageid: <1547932788.51.0.808090830872.issue35785@roundup.psfhosted.org>
2019-01-19 21:19:48Anthony Sottilelinkissue35785 messages
2019-01-19 21:19:48Anthony Sottilecreate