mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -1911,7 +1911,9 @@ def _main(args=None):
|
|||
import argparse
|
||||
import pprint
|
||||
parser = argparse.ArgumentParser(
|
||||
description='display contents of the pickle files')
|
||||
description='display contents of the pickle files',
|
||||
color=True,
|
||||
)
|
||||
parser.add_argument(
|
||||
'pickle_file',
|
||||
nargs='+', help='the pickle file')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue