aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/code.py
diff options
context:
space:
mode:
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>2025-05-05 20:46:46 +0300
committerGitHub <noreply@github.com>2025-05-05 19:46:46 +0200
commit4ac916ae33b962cb6b4f8849556403594b22a7f2 (patch)
tree0a570835e3d8f5dfef8ff53abe49869ea76a2699 /Lib/code.py
parent2b4e2b78303197dea9d3ffecfc0423fa09edf71f (diff)
downloadcpython-4ac916ae33b962cb6b4f8849556403594b22a7f2.tar.gz
cpython-4ac916ae33b962cb6b4f8849556403594b22a7f2.zip
gh-130645: Add color to stdlib argparse CLIs (gh-133380)
Diffstat (limited to 'Lib/code.py')
-rw-r--r--Lib/code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/code.py b/Lib/code.py
index 41331dfd071..b134886dc26 100644
--- a/Lib/code.py
+++ b/Lib/code.py
@@ -385,7 +385,7 @@ def interact(banner=None, readfunc=None, local=None, exitmsg=None, local_exit=Fa
if __name__ == "__main__":
import argparse
- parser = argparse.ArgumentParser()
+ parser = argparse.ArgumentParser(color=True)
parser.add_argument('-q', action='store_true',
help="don't print version and copyright messages")
args = parser.parse_args()