Output wrongly includes control characters `````[1;34m`
Since Python3.14, argparse --help output is colored, which is rendered by sphinx-argparse as [1;34musage: [0m[1;35mfancytool[0m [[32m-h[0m] (instead of usage: fancytool -h).
This can be controlled by environment variables.
Minimum working example: Just run any of your usual example with python3.14.
Can confirm. I see the odd colour control characters when building documentation with .\make.bat html and with python -m sphinx -b html. But not when running through PyCharm, probably because it disables colour coding.
I guess we could either filter all color characters from the argparse result, or try to disable colour features when running argparse. I'll have a look and see what's possible.
EDIT: In an IDE the issue can be made to appear while debugging by passing FORCE_COLOR=1 as an environment variable (see https://docs.python.org/3/using/cmdline.html#controlling-color).