diff options
| author | Benjamin Peterson <benjamin@python.org> | 2014-04-13 19:52:14 -0400 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2014-04-13 19:52:14 -0400 |
| commit | fc8e9883bef8058723a38f6c8db6549ad611a633 (patch) | |
| tree | 3853c1fc0319e111bea88ca24fca3ab3ead4827e /Doc/library/json.rst | |
| parent | 3d794fb2407f5ae66be63c5e813840b19d3a82c7 (diff) | |
| download | cpython-git-fc8e9883bef8058723a38f6c8db6549ad611a633.tar.gz | |
correct sphinx mark up for cmdline options (closes #21210)
Diffstat (limited to 'Doc/library/json.rst')
| -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 1d55787792..d6bdd8a4f8 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`. |
