Skip to content

Commit 531fc3a

Browse files
authored
pythongh-138019: improve help message for json.tool (python#138037)
1 parent ce70a57 commit 531fc3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/json/tool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def main():
4646
'to validate and pretty-print JSON objects.')
4747
parser = argparse.ArgumentParser(description=description, color=True)
4848
parser.add_argument('infile', nargs='?',
49-
help='a JSON file to be validated or pretty-printed',
49+
help='a JSON file to be validated or pretty-printed; '
50+
'defaults to stdin',
5051
default='-')
5152
parser.add_argument('outfile', nargs='?',
5253
help='write the output of infile to outfile',

0 commit comments

Comments
 (0)