mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-130645: Add color to stdlib argparse CLIs (gh-133380)
This commit is contained in:
parent
2b4e2b7830
commit
4ac916ae33
36 changed files with 66 additions and 33 deletions
|
@ -317,7 +317,9 @@ def main():
|
|||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
description='Utilities to support installing Python libraries.')
|
||||
description='Utilities to support installing Python libraries.',
|
||||
color=True,
|
||||
)
|
||||
parser.add_argument('-l', action='store_const', const=0,
|
||||
default=None, dest='maxlevels',
|
||||
help="don't recurse into subdirectories")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue