Message408332
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 |
|
Date |
User |
Action |
Args |
2021-12-11 18:55:14 | iritkatriel | set | recipients:
+ 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:14 | iritkatriel | set | messageid: <1639248914.56.0.60619859031.issue9338@roundup.psfhosted.org> |
2021-12-11 18:55:14 | iritkatriel | link | issue9338 messages |
2021-12-11 18:55:14 | iritkatriel | create | |
|