From 7e0a7adaa5c41e37f36ac7e004a1a613a3767df8 Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Sun, 7 Dec 2025 20:14:22 -0800 Subject: [PATCH] Fix NO_COLOR --- Doc/library/argparse.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index d30c44dd8fd..86776ac7181 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -647,7 +647,7 @@ are set. .. note:: Error messages will include color codes when redirecting stderr to a - file. To avoid this, set the :envvar:`NO_COLOR` or :envvar:`PYTHON_COLORS` + file. To avoid this, set the |NO_COLOR|_ or :envvar:`PYTHON_COLORS` environment variable (e.g., ``NO_COLOR=1 python script.py 2> errors.txt``). .. versionadded:: 3.14