Skip to content

Commit cc315dc

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

File tree

8 files changed

+26
-13
lines changed

8 files changed

+26
-13
lines changed

Doc/library/cmdline.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ The following modules have a command-line interface.
1616
* :ref:`dis <dis-cli>`
1717
* :ref:`doctest <doctest-cli>`
1818
* :mod:`!encodings.rot_13`
19-
* :mod:`ensurepip`
19+
* :ref:`ensurepip <ensurepip-cli>`
2020
* :mod:`filecmp`
2121
* :mod:`fileinput`
2222
* :mod:`ftplib`
2323
* :ref:`gzip <gzip-cli>`
2424
* :ref:`http.server <http-server-cli>`
25-
* :mod:`!idlelib`
25+
* :ref:`idlelib <idlelib-cli>`
2626
* :ref:`inspect <inspect-module-cli>`
2727
* :ref:`json <json-commandline>`
2828
* :ref:`mimetypes <mimetypes-cli>`
29-
* :mod:`pdb`
29+
* :ref:`pdb <pdb-cli>`
3030
* :ref:`pickle <pickle-cli>`
3131
* :ref:`pickletools <pickletools-cli>`
3232
* :ref:`platform <platform-cli>`
@@ -52,8 +52,8 @@ The following modules have a command-line interface.
5252
* :mod:`turtledemo`
5353
* :ref:`unittest <unittest-command-line-interface>`
5454
* :ref:`uuid <uuid-cli>`
55-
* :mod:`venv`
56-
* :mod:`webbrowser`
55+
* :ref:`venv <venv-cli>`
56+
* :ref:`webbrowser <webbrowser-cli>`
5757
* :ref:`zipapp <zipapp-command-line-interface>`
5858
* :ref:`zipfile <zipfile-commandline>`
5959

Doc/library/ensurepip.rst

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

4343
.. include:: ../includes/wasm-mobile-notavail.rst
4444

45-
Command line interface
45+
.. _ensurepip-cli:
46+
47+
Command-line interface
4648
----------------------
4749

4850
.. program:: ensurepip

Doc/library/gzip.rst

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

270270
.. _gzip-cli:
271271

272-
Command Line Interface
272+
Command-line interface
273273
----------------------
274274

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

285-
Command line options
285+
Command-line options
286286
^^^^^^^^^^^^^^^^^^^^
287287

288288
.. option:: file

Doc/library/idle.rst

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

664-
Command line usage
664+
.. _idlelib-cli:
665+
666+
Command-line usage
665667
^^^^^^^^^^^^^^^^^^
666668

667669
.. program:: idle

Doc/library/inspect.rst

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

17771777
.. _inspect-module-cli:
17781778

1779-
Command Line Interface
1779+
Command-line interface
17801780
----------------------
17811781

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

Doc/library/pdb.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ The debugger's prompt is ``(Pdb)``, which is the indicator that you are in debug
7676

7777

7878
.. _pdb-cli:
79+
80+
Command-line interface
81+
----------------------
82+
7983
.. program:: pdb
8084

8185
You can also invoke :mod:`pdb` from the command line to debug other scripts. For
@@ -334,7 +338,7 @@ access further features, you have to do this yourself:
334338

335339
.. _debugger-commands:
336340

337-
Debugger Commands
341+
Debugger commands
338342
-----------------
339343

340344
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
@@ -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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ 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+
54+
Command-line interface
55+
----------------------
56+
5257
.. program:: webbrowser
5358

5459
The script :program:`webbrowser` can be used as a command-line interface for the
@@ -232,7 +237,7 @@ Here are some simple examples::
232237

233238
.. _browser-controllers:
234239

235-
Browser Controller Objects
240+
Browser controller objects
236241
--------------------------
237242

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

0 commit comments

Comments
 (0)