]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-130160: Add anchors to CLI Usage section for `cmdline` (GH-133182) (#141664)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 17 Nov 2025 14:57:26 +0000 (15:57 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Nov 2025 14:57:26 +0000 (14:57 +0000)
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 16c67ddbf7cec287870e6977060c521e73e7433c..c43b10157f9aea07d557a1d162a9a2c7502610ca 100644 (file)
@@ -16,17 +16,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 <json-commandline>`
 * :ref:`mimetypes <mimetypes-cli>`
-* :mod:`pdb`
+* :ref:`pdb <pdb-cli>`
 * :ref:`pickle <pickle-cli>`
 * :ref:`pickletools <pickletools-cli>`
 * :ref:`platform <platform-cli>`
@@ -52,8 +52,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 165b9a9f823154c008f52d8afa2a235ae124cb19..32b92c01570004b8bcb78db4b3237c9c73683a26 100644 (file)
@@ -42,7 +42,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 bb260aee4e9eb2c3b0065dd21a311bc2c5f26714..76de92b30692b337956652e7124de7fb890367d9 100644 (file)
@@ -269,7 +269,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
@@ -282,7 +282,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 52e3726a0f5af5bb1c32aac1f19f0fd8fd2671aa..a16f46ef812400f211c9936f2c349fde814277bb 100644 (file)
@@ -661,7 +661,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 2b3b294ff33a643fe2cb49a2182a96d1739fb4e8..c5af7d5de2837c4299988212f294968676693532 100644 (file)
@@ -1776,7 +1776,7 @@ Buffer flags
 
 .. _inspect-module-cli:
 
-Command Line Interface
+Command-line interface
 ----------------------
 
 The :mod:`inspect` module also provides a basic introspection capability
index 90dc6648045f27fd960339daa5178e9e110c9828..0bbdc42535290a5caa65d4afd3d03e9b546adb82 100644 (file)
@@ -76,6 +76,10 @@ The debugger's prompt is ``(Pdb)``, which is the indicator that you are in debug
 
 
 .. _pdb-cli:
+
+Command-line interface
+----------------------
+
 .. program:: pdb
 
 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:
 
 .. _debugger-commands:
 
-Debugger Commands
+Debugger commands
 -----------------
 
 The commands recognized by the debugger are listed below.  Most commands can be
index e98dd83b60eb6009769cf850ad663c880e674ada..d93e4dc7c75f1a32e1a13066c455e6f2bceec768 100644 (file)
@@ -270,7 +270,7 @@ Module contents
 
 .. _site-commandline:
 
-Command Line Interface
+Command-line interface
 ----------------------
 
 .. program:: site
index fd6abc70261019ae85e1ba68a3cf7c54f4edf8f4..a2103d8fdd8efe7a676c59cbe1fb7b979679a74e 100644 (file)
@@ -49,6 +49,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
@@ -232,7 +237,7 @@ Here are some simple examples::
 
 .. _browser-controllers:
 
-Browser Controller Objects
+Browser controller objects
 --------------------------
 
 Browser controllers provide the :attr:`~controller.name` attribute,