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 iritkatriel
Recipients Kotan, TD22057, berker.peksag, bethard, catherine, elsdoerfer, eric.araujo, extmind, iritkatriel, jacksonriley, jwilk, kernc, kottalovag, paul.j3, phawkins, rhettinger, sebix, wrobell
Date 2021-12-11.18:55:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639248914.56.0.60619859031.issue9338@roundup.psfhosted.org>
In-reply-to
Content
Reproduced on 3.11:

>>> import argparse
>>> parser = argparse.ArgumentParser(prog='PROG')
>>> 
>>> parser.add_argument('--badger', nargs='+')
_StoreAction(option_strings=['--badger'], dest='badger', nargs='+', const=None, default=None, type=None, choices=None, help=None, metavar=None)
>>> parser.add_argument('spam')
_StoreAction(option_strings=[], dest='spam', nargs=None, const=None, default=None, type=None, choices=None, help=None, metavar=None)
>>> parser.parse_args('--badger A B C D'.split())
usage: PROG [-h] [--badger BADGER [BADGER ...]] spam
PROG: error: the following arguments are required: spam
History
Date User Action Args
2021-12-11 18:55:14iritkatrielsetrecipients: + iritkatriel, rhettinger, bethard, wrobell, jwilk, eric.araujo, TD22057, catherine, elsdoerfer, Kotan, berker.peksag, paul.j3, phawkins, kernc, sebix, extmind, jacksonriley, kottalovag
2021-12-11 18:55:14iritkatrielsetmessageid: <1639248914.56.0.60619859031.issue9338@roundup.psfhosted.org>
2021-12-11 18:55:14iritkatriellinkissue9338 messages
2021-12-11 18:55:14iritkatrielcreate