mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
bpo-29636: json.tool: Add document for indentation options. (GH-17482)
And updated test to use subprocess.run
This commit is contained in:
parent
4443450fda
commit
15fb7fa881
3 changed files with 35 additions and 34 deletions
|
|
@ -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 '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue