summaryrefslogtreecommitdiffstats
path: root/Doc/library/json.rst
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2023-10-03 17:38:12 (GMT)
committerGitHub <noreply@github.com>2023-10-03 17:38:12 (GMT)
commit77e9aae3837d9f0cf87461d023896f2c4aeb282f (patch)
tree508dcedceb78404e8fb2f3d36c692c109242d7a0 /Doc/library/json.rst
parentd67edcf0b361c9ee0d29ed719562c58a85304cd0 (diff)
downloadcpython-77e9aae3837d9f0cf87461d023896f2c4aeb282f.zip
cpython-77e9aae3837d9f0cf87461d023896f2c4aeb282f.tar.gz
cpython-77e9aae3837d9f0cf87461d023896f2c4aeb282f.tar.bz2
Docs: Avoid the deprecated ``.. cmdoption::`` directive (#110292)
Diffstat (limited to 'Doc/library/json.rst')
-rw-r--r--Doc/library/json.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index b337b5f..0ce4b69 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -714,7 +714,7 @@ specified, :data:`sys.stdin` and :data:`sys.stdout` will be used respectively:
Command line options
^^^^^^^^^^^^^^^^^^^^
-.. cmdoption:: infile
+.. option:: infile
The JSON file to be validated or pretty-printed:
@@ -734,36 +734,36 @@ Command line options
If *infile* is not specified, read from :data:`sys.stdin`.
-.. cmdoption:: outfile
+.. option:: outfile
Write the output of the *infile* to the given *outfile*. Otherwise, write it
to :data:`sys.stdout`.
-.. cmdoption:: --sort-keys
+.. option:: --sort-keys
Sort the output of dictionaries alphabetically by key.
.. versionadded:: 3.5
-.. cmdoption:: --no-ensure-ascii
+.. option:: --no-ensure-ascii
Disable escaping of non-ascii characters, see :func:`json.dumps` for more information.
.. versionadded:: 3.9
-.. cmdoption:: --json-lines
+.. option:: --json-lines
Parse every input line as separate JSON object.
.. versionadded:: 3.8
-.. cmdoption:: --indent, --tab, --no-indent, --compact
+.. option:: --indent, --tab, --no-indent, --compact
Mutually exclusive options for whitespace control.
.. versionadded:: 3.9
-.. cmdoption:: -h, --help
+.. option:: -h, --help
Show the help message.