From: Benjamin Peterson Date: Sun, 13 Apr 2014 23:52:14 +0000 (-0400) Subject: correct sphinx mark up for cmdline options (closes #21210) X-Git-Tag: v3.5.0a1~1902 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc8e9883bef8058723a38f6c8db6549ad611a633;p=thirdparty%2FPython%2Fcpython.git correct sphinx mark up for cmdline options (closes #21210) --- diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 1d5578779272..d6bdd8a4f89b 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:: [] +.. cmdoption:: infile The JSON file to be validated or pretty-printed:: @@ -606,7 +606,9 @@ Command line options } ] -.. cmdoption:: [] + 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`.