diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-04-13 23:52:14 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-04-13 23:52:14 (GMT) |
commit | fc8e9883bef8058723a38f6c8db6549ad611a633 (patch) | |
tree | 3853c1fc0319e111bea88ca24fca3ab3ead4827e | |
parent | 3d794fb2407f5ae66be63c5e813840b19d3a82c7 (diff) | |
download | cpython-fc8e9883bef8058723a38f6c8db6549ad611a633.zip cpython-fc8e9883bef8058723a38f6c8db6549ad611a633.tar.gz cpython-fc8e9883bef8058723a38f6c8db6549ad611a633.tar.bz2 |
correct sphinx mark up for cmdline options (closes #21210)
-rw-r--r-- | Doc/library/json.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 1d55787..d6bdd8a 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -590,7 +590,7 @@ specified, :attr:`sys.stdin` and :attr:`sys.stdout` will be used respectively:: Command line options ^^^^^^^^^^^^^^^^^^^^ -.. cmdoption:: [<infile>] +.. cmdoption:: infile The JSON file to be validated or pretty-printed:: @@ -606,7 +606,9 @@ Command line options } ] -.. cmdoption:: [<outfile>] + If *infile* is not specified, read from :attr:`sys.stdin`. + +.. cmdoption:: outfile Write the output of the *infile* to the given *outfile*. Otherwise, write it to :attr:`sys.stdout`. |