Skip to content

Commit 793d807

Browse files
committed
Add anchors to CLI Usage section for cmdline
1 parent 42b0b06 commit 793d807

File tree

8 files changed

+17
-10
lines changed

8 files changed

+17
-10
lines changed

Doc/library/cmdline.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ The following modules have a command-line interface.
1414
* :ref:`dis <dis-cli>`
1515
* :ref:`doctest <doctest-cli>`
1616
* :mod:`!encodings.rot_13`
17-
* :mod:`ensurepip`
17+
* :ref:`ensurepip <ensurepip-cli>`
1818
* :mod:`filecmp`
1919
* :mod:`fileinput`
2020
* :mod:`ftplib`
2121
* :ref:`gzip <gzip-cli>`
2222
* :ref:`http.server <http-server-cli>`
23-
* :mod:`!idlelib`
23+
* :ref:`idlelib <idlelib-cli>`
2424
* :ref:`inspect <inspect-module-cli>`
2525
* :ref:`json <json-commandline>`
2626
* :ref:`mimetypes <mimetypes-cli>`
27-
* :mod:`pdb`
27+
* :ref:`pdb <pdb-cli>`
2828
* :ref:`pickle <pickle-cli>`
2929
* :ref:`pickletools <pickletools-cli>`
3030
* :mod:`platform`
@@ -51,7 +51,7 @@ The following modules have a command-line interface.
5151
* :ref:`unittest <unittest-command-line-interface>`
5252
* :ref:`uuid <uuid-cli>`
5353
* :mod:`venv`
54-
* :mod:`webbrowser`
54+
* :ref:`webbrowser <webbrowser-cli>`
5555
* :ref:`zipapp <zipapp-command-line-interface>`
5656
* :ref:`zipfile <zipfile-commandline>`
5757

Doc/library/ensurepip.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ when creating a virtual environment) or after explicitly uninstalling
4040

4141
.. include:: ../includes/wasm-mobile-notavail.rst
4242

43-
Command line interface
43+
.. _ensurepip-cli:
44+
45+
Command-line interface
4446
----------------------
4547

4648
.. program:: ensurepip

Doc/library/gzip.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Example of how to GZIP compress a binary string::
267267

268268
.. _gzip-cli:
269269

270-
Command Line Interface
270+
Command-line Interface
271271
----------------------
272272

273273
The :mod:`gzip` module provides a simple command line interface to compress or
@@ -280,7 +280,7 @@ Once executed the :mod:`gzip` module keeps the input file(s).
280280
Add a new command line interface with a usage.
281281
By default, when you will execute the CLI, the default compression level is 6.
282282

283-
Command line options
283+
Command-line options
284284
^^^^^^^^^^^^^^^^^^^^
285285

286286
.. option:: file

Doc/library/idle.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,9 @@ looked for in the user's home directory. Statements in this file will be
657657
executed in the Tk namespace, so this file is not useful for importing
658658
functions to be used from IDLE's Python shell.
659659

660-
Command line usage
660+
.. _idlelib-cli:
661+
662+
Command-line usage
661663
^^^^^^^^^^^^^^^^^^
662664

663665
.. program:: idle

Doc/library/inspect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1768,7 +1768,7 @@ Buffer flags
17681768

17691769
.. _inspect-module-cli:
17701770

1771-
Command Line Interface
1771+
Command-line Interface
17721772
----------------------
17731773

17741774
The :mod:`inspect` module also provides a basic introspection capability

Doc/library/pdb.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ The debugger's prompt is ``(Pdb)``, which is the indicator that you are in debug
7474
command arguments, e.g. the current global and local names are offered as
7575
arguments of the ``p`` command.
7676

77+
.. _pdb-cli:
7778

7879
.. program:: pdb
7980

Doc/library/site.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Module contents
270270

271271
.. _site-commandline:
272272

273-
Command Line Interface
273+
Command-line Interface
274274
----------------------
275275

276276
.. program:: site

Doc/library/webbrowser.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ a new tab, with the browser being brought to the foreground. The use of the
4949
:mod:`webbrowser` module on iOS requires the :mod:`ctypes` module. If
5050
:mod:`ctypes` isn't available, calls to :func:`.open` will fail.
5151

52+
.. _webbrowser-cli:
53+
5254
.. program:: webbrowser
5355

5456
The script :program:`webbrowser` can be used as a command-line interface for the

0 commit comments

Comments
 (0)