diff options
| author | Daniel Himmelstein <daniel.himmelstein@gmail.com> | 2019-12-07 14:14:40 (GMT) | 
|---|---|---|
| committer | Inada Naoki <songofacandy@gmail.com> | 2019-12-07 14:14:40 (GMT) | 
| commit | 15fb7fa88187f5841088721a43609bffe64a8dc7 (patch) | |
| tree | df7fccd740a6002f7dcffdeed1ecff9c910c9582 /Lib/json | |
| parent | 4443450fdaf248427cf4a00a6ee36229e6402ec6 (diff) | |
| download | cpython-15fb7fa88187f5841088721a43609bffe64a8dc7.zip cpython-15fb7fa88187f5841088721a43609bffe64a8dc7.tar.gz cpython-15fb7fa88187f5841088721a43609bffe64a8dc7.tar.bz2  | |
bpo-29636: json.tool: Add document for indentation options. (GH-17482)
And updated test to use subprocess.run
Diffstat (limited to 'Lib/json')
| -rw-r--r-- | Lib/json/tool.py | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/json/tool.py b/Lib/json/tool.py index 5542ce4..6d7d9a0 100644 --- a/Lib/json/tool.py +++ b/Lib/json/tool.py @@ -33,7 +33,8 @@ def main():      parser.add_argument('--no-ensure-ascii', dest='ensure_ascii', action='store_false',                          help='disable escaping of non-ASCII characters')      parser.add_argument('--json-lines', action='store_true', default=False, -                        help='parse input using the jsonlines format') +                        help='parse input using the JSON Lines format. ' +                        'Use with --no-indent or --compact to produce valid JSON Lines output.')      group = parser.add_mutually_exclusive_group()      group.add_argument('--indent', default=4, type=int,                         help='separate items with newlines and use this number '  | 
