summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-11-05 17:51:36 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-11-05 17:51:36 (GMT)
commit8c5f14d9c137fbffbb9de7c62ca834df2e9fbf2a (patch)
treed717d4a3aca6028e0bb81b40116b6847aa8782d5 /Doc/library
parent7054e5c80b6e98cd44e22d1bc2d7f0a94343089d (diff)
downloadcpython-8c5f14d9c137fbffbb9de7c62ca834df2e9fbf2a.zip
cpython-8c5f14d9c137fbffbb9de7c62ca834df2e9fbf2a.tar.gz
cpython-8c5f14d9c137fbffbb9de7c62ca834df2e9fbf2a.tar.bz2
[3.6] bpo-35167: Specify program for json.tool command line options. (GH-10332) (GH-10338) (GH-10339)
(cherry picked from commit 083a7a172b8c8888252d72031f21dcfea3c0d73f) (cherry picked from commit 6ad277b2592cfac0f138e9adca4374dd1f354bdf)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/json.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index aa9da91..98ca86e 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -652,7 +652,9 @@ when serializing Python :class:`int` values of extremely large magnitude, or
when serializing instances of "exotic" numerical types such as
:class:`decimal.Decimal`.
+
.. _json-commandline:
+.. program:: json.tool
Command Line Interface
----------------------
@@ -684,6 +686,7 @@ specified, :attr:`sys.stdin` and :attr:`sys.stdout` will be used respectively:
:option:`--sort-keys` option to sort the output of dictionaries
alphabetically by key.
+
Command line options
^^^^^^^^^^^^^^^^^^^^