Disable argument color output when building the docs.
Review Request #14802 — Created Feb. 8, 2026 and submitted — Latest diff uploaded
Starting in Python 3.14,
argparseoutputs color by default. We use
argparseto generate parts of our documentation, and this resulted in
ANSI escape sequences messing up the generated output.We now have options for disabling color output when creating a parser,
and explicitly disable for the docs.
Unit tests pass on all supported versions of Python.
Built the docs. Verified that the usage docs no longer had the ANSI
sequences for standard commands or multi-commands/subcommands.