[Python-checkins] bpo-35167: Specify program for gzip and json.tool command line options. (GH-10332)

Serhiy Storchaka webhook-mailer at python.org
Mon Nov 5 10:47:30 EST 2018


https://github.com/python/cpython/commit/083a7a172b8c8888252d72031f21dcfea3c0d73f
commit: 083a7a172b8c8888252d72031f21dcfea3c0d73f
branch: master
author: Serhiy Storchaka <storchaka at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-11-05T17:47:27+02:00
summary:

bpo-35167: Specify program for gzip and json.tool command line options. (GH-10332)

files:
M Doc/library/gzip.rst
M Doc/library/json.rst

diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst
index a93f37743854..a57307b0e499 100644
--- a/Doc/library/gzip.rst
+++ b/Doc/library/gzip.rst
@@ -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
 ----------------------
 
diff --git a/Doc/library/json.rst b/Doc/library/json.rst
index 8ce493d63995..510e30733fed 100644
--- a/Doc/library/json.rst
+++ b/Doc/library/json.rst
@@ -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
 ^^^^^^^^^^^^^^^^^^^^
 



More information about the Python-checkins mailing list