]> granicus.if.org Git - python/commitdiff
correct sphinx mark up for cmdline options (closes #21210)
authorBenjamin Peterson <benjamin@python.org>
Sun, 13 Apr 2014 23:52:14 +0000 (19:52 -0400)
committerBenjamin Peterson <benjamin@python.org>
Sun, 13 Apr 2014 23:52:14 +0000 (19:52 -0400)
Doc/library/json.rst

index 1d5578779272ae2788d3267a15e7023e72ea99fc..d6bdd8a4f89b62489e2ab1f49b0295e4fff927b5 100644 (file)
@@ -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`.