]> granicus.if.org Git - python/commitdiff
bpo-35167: Specify program for gzip and json.tool command line options. (GH-10332)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 5 Nov 2018 15:47:27 +0000 (17:47 +0200)
committerGitHub <noreply@github.com>
Mon, 5 Nov 2018 15:47:27 +0000 (17:47 +0200)
Doc/library/gzip.rst
Doc/library/json.rst

index a93f37743854aedac3b5c78d1ad20e2c1a411a87..a57307b0e49921b304472862f3572bbd9d8e7be8 100644 (file)
@@ -211,6 +211,9 @@ Example of how to GZIP compress a binary string::
       The basic data compression module needed to support the :program:`gzip` file
       format.
 
+
+.. program:: gzip
+
 Command Line Interface
 ----------------------
 
index 8ce493d63995d415bc79a80a90ca734369a5c778..510e30733fed0a6f1d88109817c0b02a48630f69 100644 (file)
@@ -648,7 +648,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
 ----------------------
@@ -680,6 +682,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
 ^^^^^^^^^^^^^^^^^^^^