Skip to content

Commit 0502ba0

Browse files
committed
Add argparse color help to What's New
1 parent fac41f5 commit 0502ba0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Doc/whatsnew/3.14.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,15 @@ argparse
698698
and subparser names if mistyped by the user.
699699
(Contributed by Savannah Ostrowski in :gh:`124456`.)
700700

701+
* Introduced the optional *color* parameter to
702+
:class:`argparse.ArgumentParser`, enabling color for help text.
703+
This can be controlled via the :envvar:`PYTHON_COLORS` environment
704+
variable as well as the canonical |NO_COLOR|_
705+
and |FORCE_COLOR|_ environment variables.
706+
See also :ref:`using-on-controlling-color`.
707+
(Contributed by Hugo van Kemenade in :gh:`130645`.)
708+
709+
701710
ast
702711
---
703712

0 commit comments

Comments
 (0)