You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
3.14+ argparse colorization makes sub-commands prog always colored if colored at creation time #139809
3.14bugs and security fixes3.15bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
3.14bugs and security fixes3.15bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
Activity
mpkocher commentedon Oct 8, 2025
As an aside, you can use
parser = ArgumentParser(description="argparse tester", prog="complex", exit_on_error=False)to make testing easier.savannahostrowski commentedon Oct 9, 2025
Hey - thanks for filing this. Looks like we missed applying
_decolorhere when we landed in #132323. I've opened a PR to fix this.GH-139809: Fix argparse subcommand prog not respecting color environm…
pythonGH-139809: Fix argparse subcommand prog not respecting color en…
[3.14] GH-139809: Fix argparse subcommand prog not respecting color e…