Skip to content

Commit 66a173a

Browse files
committed
Improve argparse help messages
1 parent 0f38c18 commit 66a173a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/json/tool.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ def main():
2626
parser.add_argument('outfile', nargs='?', type=argparse.FileType('w'),
2727
help='write the output of infile to outfile')
2828
parser.add_argument('--no-ensure-ascii', action='store_true', default=False,
29-
help='Do not set ensure_ascii to escape non-ASCII characters')
29+
help='Do not escape non-ASCII characters in output.')
3030
group = parser.add_mutually_exclusive_group()
3131
group.add_argument('--indent', default=4, type=int,
32-
help='Indent level for pretty-printing.')
32+
help='Indent level (number of spaces) for '
33+
'pretty-printing. Defaults to 4.')
3334
group.add_argument('--no-indent', action='store_const', dest='indent',
3435
const=None, help='Use compact mode.')
3536
parser.add_argument('--sort-keys', action='store_true', default=False,

0 commit comments

Comments
 (0)