aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/http/server.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/http/server.py
parent2b4e2b78303197dea9d3ffecfc0423fa09edf71f (diff)
downloadcpython-4ac916ae33b962cb6b4f8849556403594b22a7f2.tar.gz
cpython-4ac916ae33b962cb6b4f8849556403594b22a7f2.zip
gh-130645: Add color to stdlib argparse CLIs (gh-133380)
Diffstat (limited to 'Lib/http/server.py')
-rw-r--r--Lib/http/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/server.py b/Lib/http/server.py
index a2aad4c9be3..64f766f9bc2 100644
--- a/Lib/http/server.py
+++ b/Lib/http/server.py
@@ -1340,7 +1340,7 @@ if __name__ == '__main__':
import argparse
import contextlib
- parser = argparse.ArgumentParser()
+ parser = argparse.ArgumentParser(color=True)
parser.add_argument('--cgi', action='store_true',
help='run as CGI server')
parser.add_argument('-b', '--bind', metavar='ADDRESS',