Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add argparse color help to What's New
  • Loading branch information
hugovk committed May 2, 2025
commit 0502ba0339dc3c6b7bc448a9fd49ba0a35c15ec8
9 changes: 9 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,15 @@ argparse
and subparser names if mistyped by the user.
(Contributed by Savannah Ostrowski in :gh:`124456`.)

* Introduced the optional *color* parameter to
:class:`argparse.ArgumentParser`, enabling color for help text.
This can be controlled via the :envvar:`PYTHON_COLORS` environment
variable as well as the canonical |NO_COLOR|_
and |FORCE_COLOR|_ environment variables.
See also :ref:`using-on-controlling-color`.
(Contributed by Hugo van Kemenade in :gh:`130645`.)


ast
---

Expand Down