]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-130160: Add anchors to CLI Usage section for `cmdline` (GH-133182) (#141667)
authorSemyon Moroz <donbarbos@proton.me>
Mon, 17 Nov 2025 17:55:54 +0000 (21:55 +0400)
committerGitHub <noreply@github.com>
Mon, 17 Nov 2025 17:55:54 +0000 (19:55 +0200)
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Doc/library/cmdline.rst
Doc/library/ensurepip.rst
Doc/library/gzip.rst
Doc/library/idle.rst
Doc/library/inspect.rst
Doc/library/pdb.rst
Doc/library/site.rst
Doc/library/webbrowser.rst

index 32d23d9ae812821a065f34aff9796babd7bf50a9..5eca161e2282aa181ed8e846854a2e727dd07cf8 100644 (file)
@@ -15,17 +15,17 @@ The following modules have a command-line interface.
 * :ref:`dis <dis-cli>`
 * :ref:`doctest <doctest-cli>`
 * :mod:`!encodings.rot_13`
-* :mod:`ensurepip`
+* :ref:`ensurepip <ensurepip-cli>`
 * :mod:`filecmp`
 * :mod:`fileinput`
 * :mod:`ftplib`
 * :ref:`gzip <gzip-cli>`
 * :ref:`http.server <http-server-cli>`
-* :mod:`!idlelib`
+* :ref:`idlelib <idlelib-cli>`
 * :ref:`inspect <inspect-module-cli>`
 * :ref:`json.tool <json-commandline>`
 * :mod:`mimetypes`
-* :mod:`pdb`
+* :ref:`pdb <pdb-cli>`
 * :mod:`pickle`
 * :ref:`pickletools <pickletools-cli>`
 * :ref:`platform <platform-cli>`
@@ -51,8 +51,8 @@ The following modules have a command-line interface.
 * :mod:`turtledemo`
 * :ref:`unittest <unittest-command-line-interface>`
 * :ref:`uuid <uuid-cli>`
-* :mod:`venv`
-* :mod:`webbrowser`
+* :ref:`venv <venv-cli>`
+* :ref:`webbrowser <webbrowser-cli>`
 * :ref:`zipapp <zipapp-command-line-interface>`
 * :ref:`zipfile <zipfile-commandline>`
 
index fa102c4a08010367276d4cb3fa91a1446edc5779..8feaf8a7dccfe3bb5ff373c0f9dcd604355ab784 100644 (file)
@@ -40,7 +40,9 @@ when creating a virtual environment) or after explicitly uninstalling
 
 .. include:: ../includes/wasm-mobile-notavail.rst
 
-Command line interface
+.. _ensurepip-cli:
+
+Command-line interface
 ----------------------
 
 .. program:: ensurepip
index d6f72c1610c560d131f9422b7691c71b067b88fe..597798b4916954e7530d6856d705ab9901f3ec4a 100644 (file)
@@ -262,7 +262,7 @@ Example of how to GZIP compress a binary string::
 
 .. _gzip-cli:
 
-Command Line Interface
+Command-line interface
 ----------------------
 
 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).
    Add a new command line interface with a usage.
    By default, when you will execute the CLI, the default compression level is 6.
 
-Command line options
+Command-line options
 ^^^^^^^^^^^^^^^^^^^^
 
 .. option:: file
index 10ec7f0a6f14c90a56e92970ca39ee768d6cde44..9e87704c286252722d487b5d7549a1653bb63dde 100644 (file)
@@ -657,7 +657,9 @@ looked for in the user's home directory.  Statements in this file will be
 executed in the Tk namespace, so this file is not useful for importing
 functions to be used from IDLE's Python shell.
 
-Command line usage
+.. _idlelib-cli:
+
+Command-line usage
 ^^^^^^^^^^^^^^^^^^
 
 .. program:: idle
index a6107dea0f938b9cab536e34c1109c0cc708a843..df6a9f1d01c5d4787a02f6c6d951b67f7b97b323 100644 (file)
@@ -1740,7 +1740,7 @@ Buffer flags
 
 .. _inspect-module-cli:
 
-Command Line Interface
+Command-line interface
 ----------------------
 
 The :mod:`inspect` module also provides a basic introspection capability
index b9016c132750ba43ef2f9f1389f7415eba26c444..8f2981f31082efe321266d507c64d4750cebf213 100644 (file)
@@ -75,6 +75,11 @@ The debugger's prompt is ``(Pdb)``, which is the indicator that you are in debug
    arguments of the ``p`` command.
 
 
+.. _pdb-cli:
+
+Command-line interface
+----------------------
+
 .. program:: pdb
 
 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:
 
 .. _debugger-commands:
 
-Debugger Commands
+Debugger commands
 -----------------
 
 The commands recognized by the debugger are listed below.  Most commands can be
index 95aea779f82673688a81733d73b7f4abc373e765..484c3f8af583894e7ddc90797ee12057185cb349 100644 (file)
@@ -262,7 +262,7 @@ Module contents
 
 .. _site-commandline:
 
-Command Line Interface
+Command-line interface
 ----------------------
 
 .. program:: site
index baccc791b227fd6d1c1ecbf3a7809c152a5557ba..a15c26fa344ef7c3cfd21c09bcf94fde77951fe5 100644 (file)
@@ -40,6 +40,11 @@ a new tab, with the browser being brought to the foreground. The use of the
 :mod:`webbrowser` module on iOS requires the :mod:`ctypes` module. If
 :mod:`ctypes` isn't available, calls to :func:`.open` will fail.
 
+.. _webbrowser-cli:
+
+Command-line interface
+----------------------
+
 .. program:: webbrowser
 
 The script :program:`webbrowser` can be used as a command-line interface for the
@@ -223,7 +228,7 @@ Here are some simple examples::
 
 .. _browser-controllers:
 
-Browser Controller Objects
+Browser controller objects
 --------------------------
 
 Browser controllers provide the :attr:`~controller.name` attribute,