summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/json.rst6
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`.