https://github.com/python/cpython/commit/531fc3a7a3998d714a9382f0bc143c05d69e9174
commit: 531fc3a7a3998d714a9382f0bc143c05d69e9174
branch: main
author: yihong <[email protected]>
committer: picnixz <[email protected]>
date: 2025-08-22T08:44:25Z
summary:

gh-138019: improve help message for `json.tool` (#138037)

files:
M Lib/json/tool.py

diff --git a/Lib/json/tool.py b/Lib/json/tool.py
index 1967817add8abc..050c2fe2161e3e 100644
--- a/Lib/json/tool.py
+++ b/Lib/json/tool.py
@@ -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',

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to