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 A. Skrobov, docs@python, iritkatriel, nanjekyejoannah, paul.j3, pconnell, r.david.murray
Date 2021-12-12.17:19:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639329562.09.0.5920930519.issue25299@roundup.psfhosted.org>
In-reply-to
Content
This is working on 3.11:

>>> from argparse import ArgumentParser
>>> parser = ArgumentParser()
>>> parser.add_argument("--foo", help="foo", action='store_const')
_StoreConstAction(option_strings=['--foo'], dest='foo', nargs=0, const=None, default=None, type=None, choices=None, help='foo', metavar=None)
>>> parser.print_usage()
usage: [-h] [--foo]
>>> 

So I agree this issue can be closed.
History
Date User Action Args
2021-12-12 17:19:22iritkatrielsetrecipients: + iritkatriel, r.david.murray, docs@python, paul.j3, pconnell, A. Skrobov, nanjekyejoannah
2021-12-12 17:19:22iritkatrielsetmessageid: <1639329562.09.0.5920930519.issue25299@roundup.psfhosted.org>
2021-12-12 17:19:22iritkatriellinkissue25299 messages
2021-12-12 17:19:22iritkatrielcreate