Commit e7405c9
authored
Enable colored output for argparse help in Python 3.14 (#19021)
Support for colored output was just merged in cpython. Maybe a bit early
to add it here already but it doesn't hurt either.
| Current | With color |
| --- | --- |
| <img width="1058" alt="Without color"
src="https://github.com/user-attachments/assets/48edae3e-9361-4af0-aff6-7931410bcd2e"
/> | <img width="944" alt="With color"
src="https://github.com/user-attachments/assets/38e64082-0321-4d36-a5fe-4d59c6eddc31"
/> |
The color output can be disable using various environment variables.
https://docs.python.org/3.14/using/cmdline.html#using-on-controlling-color1 parent d68ea35 commit e7405c9
4 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| 494 | + | |
| 495 | + | |
494 | 496 | | |
495 | 497 | | |
496 | 498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1851 | 1851 | | |
1852 | 1852 | | |
1853 | 1853 | | |
| 1854 | + | |
| 1855 | + | |
1854 | 1856 | | |
1855 | 1857 | | |
1856 | 1858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2084 | 2084 | | |
2085 | 2085 | | |
2086 | 2086 | | |
| 2087 | + | |
| 2088 | + | |
2087 | 2089 | | |
2088 | 2090 | | |
2089 | 2091 | | |
| |||
0 commit comments