mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-138019: improve help message for json.tool (#138037)
This commit is contained in:
parent
ce70a57bc0
commit
531fc3a7a3
1 changed files with 2 additions and 1 deletions
|
|
@ -46,7 +46,8 @@ def main():
|
|||
'to validate and pretty-print JSON objects.')
|
||||
parser = argparse.ArgumentParser(description=description, color=True)
|
||||
parser.add_argument('infile', nargs='?',
|
||||
help='a JSON file to be validated or pretty-printed',
|
||||
help='a JSON file to be validated or pretty-printed; '
|
||||
'defaults to stdin',
|
||||
default='-')
|
||||
parser.add_argument('outfile', nargs='?',
|
||||
help='write the output of infile to outfile',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue