Disable argument color output when building the docs.

Review Request #14802 — Created Feb. 8, 2026 and submitted

Information

RBTools
release-6.x

Reviewers

Starting in Python 3.14, argparse outputs color by default. We use
argparse to 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.

Summary ID
Disable argument color output when building the docs.
Starting in Python 3.14, `argparse` outputs color by default. We use `argparse` to 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.
acd7e7096334f275898e1744061d3a6385e5b128
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-6.x (88c2482)