gh-83648: Support deprecation of options, arguments and subcommands in argparse by serhiy-storchaka · Pull Request #114086 · python/cpython (original) (raw)
It is an alternative to #18208. Simpler and more complex at the same time.
On one hand, it only supports one argument: deprecated. On other hand, it supports deprecation of options (in all forms), positional arguments, and subcommands (with aliases). Warnings are localized and printed to stderr.
📚 Documentation preview 📚: https://cpython-previews--114086.org.readthedocs.build/