File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -620,8 +620,11 @@ keyword argument::
620
620
color
621
621
^^^^^
622
622
623
- By default, the help message is printed in color. If you want plain text
624
- help messages, you can disable it by setting ``color `` to ``False ``::
623
+ By default, the help message is printed in color using `ANSI escape sequences
624
+ <https://en.wikipedia.org/wiki/ANSI_escape_code> `__.
625
+ If you want plain text help messages, you can disable this :ref: `in your local
626
+ environment <using-on-controlling-color>`, or in the argument parser itself
627
+ by setting ``color `` to ``False ``::
625
628
626
629
>>> parser = argparse.ArgumentParser(description='Process some integers.',
627
630
... color=False)
@@ -630,9 +633,6 @@ help messages, you can disable it by setting ``color`` to ``False``::
630
633
... help='an integer for the accumulator')
631
634
>>> parser.parse_args(['--help'])
632
635
633
- Even if a CLI author has not disabled color, it can be
634
- :ref: `controlled using environment variables <using-on-controlling-color >`.
635
-
636
636
.. versionadded :: 3.14
637
637
638
638
You can’t perform that action at this time.
0 commit comments