gh-83648: Support deprecation of options, arguments and subcommands in argparse (GH-114086)

This commit is contained in:
Serhiy Storchaka 2024-02-06 00:41:34 +02:00 • committed by GitHub
parent c32bae5290
commit bb57ffdb38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 262 additions and 27 deletions

View file

@ -169,6 +169,15 @@ New Modules
Improved Modules
================
argparse
--------
* Add parameter *deprecated* in methods
:meth:`~argparse.ArgumentParser.add_argument` and :meth:`!add_parser`
which allows to deprecate command-line options, positional arguments and
subcommands.
(Contributed by Serhiy Storchaka in :gh:`83648`).
array
-----