[Python-checkins] cpython: correct sphinx mark up for cmdline options (closes #21210)

benjamin.peterson python-checkins at python.org
Mon Apr 14 01:52:25 CEST 2014


http://hg.python.org/cpython/rev/399bf1638911
changeset:   90231:399bf1638911
user:        Benjamin Peterson <benjamin at python.org>
date:        Sun Apr 13 19:52:14 2014 -0400
summary:
  correct sphinx mark up for cmdline options (closes #21210)

files:
  Doc/library/json.rst |  6 ++++--
  1 files changed, 4 insertions(+), 2 deletions(-)


diff --git a/Doc/library/json.rst b/Doc/library/json.rst
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -590,7 +590,7 @@
 Command line options
 ^^^^^^^^^^^^^^^^^^^^
 
-.. cmdoption:: [<infile>]
+.. cmdoption:: infile
 
    The JSON file to be validated or pretty-printed::
 
@@ -606,7 +606,9 @@
           }
       ]
 
-.. 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`.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list