diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 1d557877927..d6bdd8a4f89 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`.