Skip to content

Commit a63ceb7

Browse files
authored
[3.13] gh-130160: Add anchors to CLI Usage section for cmdline (GH-133182) (#141667)
Co-authored-by: Semyon Moroz <[email protected]>
1 parent 0280744 commit a63ceb7

File tree

8 files changed

+27
-13
lines changed

8 files changed

+27
-13
lines changed

Doc/library/cmdline.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ The following modules have a command-line interface.
1515
* :ref:`dis <dis-cli>`
1616
* :ref:`doctest <doctest-cli>`
1717
* :mod:`!encodings.rot_13`
18-
* :mod:`ensurepip`
18+
* :ref:`ensurepip <ensurepip-cli>`
1919
* :mod:`filecmp`
2020
* :mod:`fileinput`
2121
* :mod:`ftplib`
2222
* :ref:`gzip <gzip-cli>`
2323
* :ref:`http.server <http-server-cli>`
24-
* :mod:`!idlelib`
24+
* :ref:`idlelib <idlelib-cli>`
2525
* :ref:`inspect <inspect-module-cli>`
2626
* :ref:`json.tool <json-commandline>`
2727
* :mod:`mimetypes`
28-
* :mod:`pdb`
28+
* :ref:`pdb <pdb-cli>`
2929
* :mod:`pickle`
3030
* :ref:`pickletools <pickletools-cli>`
3131
* :ref:`platform <platform-cli>`
@@ -51,8 +51,8 @@ The following modules have a command-line interface.
5151
* :mod:`turtledemo`
5252
* :ref:`unittest <unittest-command-line-interface>`
5353
* :ref:`uuid <uuid-cli>`
54-
* :mod:`venv`
55-
* :mod:`webbrowser`
54+
* :ref:`venv <venv-cli>`
55+
* :ref:`webbrowser <webbrowser-cli>`
5656
* :ref:`zipapp <zipapp-command-line-interface>`
5757
* :ref:`zipfile <zipfile-commandline>`
5858

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
@@ -262,7 +262,7 @@ Example of how to GZIP compress a binary string::
262262

263263
.. _gzip-cli:
264264

265-
Command Line Interface
265+
Command-line interface
266266
----------------------
267267

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

278-
Command line options
278+
Command-line options
279279
^^^^^^^^^^^^^^^^^^^^
280280

281281
.. 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
@@ -1740,7 +1740,7 @@ Buffer flags
17401740

17411741
.. _inspect-module-cli:
17421742

1743-
Command Line Interface
1743+
Command-line interface
17441744
----------------------
17451745

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

Doc/library/pdb.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ The debugger's prompt is ``(Pdb)``, which is the indicator that you are in debug
7575
arguments of the ``p`` command.
7676

7777

78+
.. _pdb-cli:
79+
80+
Command-line interface
81+
----------------------
82+
7883
.. program:: pdb
7984

8085
You can also invoke :mod:`pdb` from the command line to debug other scripts. For
@@ -248,7 +253,7 @@ access further features, you have to do this yourself:
248253

249254
.. _debugger-commands:
250255

251-
Debugger Commands
256+
Debugger commands
252257
-----------------
253258

254259
The commands recognized by the debugger are listed below. Most commands can be

Doc/library/site.rst

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

263263
.. _site-commandline:
264264

265-
Command Line Interface
265+
Command-line interface
266266
----------------------
267267

268268
.. program:: site

Doc/library/webbrowser.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ a new tab, with the browser being brought to the foreground. The use of the
4040
:mod:`webbrowser` module on iOS requires the :mod:`ctypes` module. If
4141
:mod:`ctypes` isn't available, calls to :func:`.open` will fail.
4242

43+
.. _webbrowser-cli:
44+
45+
Command-line interface
46+
----------------------
47+
4348
.. program:: webbrowser
4449

4550
The script :program:`webbrowser` can be used as a command-line interface for the
@@ -223,7 +228,7 @@ Here are some simple examples::
223228

224229
.. _browser-controllers:
225230

226-
Browser Controller Objects
231+
Browser controller objects
227232
--------------------------
228233

229234
Browser controllers provide the :attr:`~controller.name` attribute,

0 commit comments

Comments
 (0)