Skip to content

gh-130160: Add anchors to CLI Usage section for cmdline #133182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Doc/library/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,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>`
* :mod:`platform`
Expand All @@ -51,7 +51,7 @@ The following modules have a command-line interface.
* :ref:`unittest <unittest-command-line-interface>`
* :ref:`uuid <uuid-cli>`
* :mod:`venv`
* :mod:`webbrowser`
* :ref:`webbrowser <webbrowser-cli>`
* :ref:`zipapp <zipapp-command-line-interface>`
* :ref:`zipfile <zipfile-commandline>`

Expand Down
4 changes: 3 additions & 1 deletion Doc/library/ensurepip.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/gzip.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,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
Expand All @@ -280,7 +280,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
Expand Down
4 changes: 3 additions & 1 deletion Doc/library/idle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/inspect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,7 @@ Buffer flags

.. _inspect-module-cli:

Command Line Interface
Command-line Interface
----------------------

The :mod:`inspect` module also provides a basic introspection capability
Expand Down
1 change: 1 addition & 0 deletions Doc/library/pdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ The debugger's prompt is ``(Pdb)``, which is the indicator that you are in debug
command arguments, e.g. the current global and local names are offered as
arguments of the ``p`` command.

.. _pdb-cli:

.. program:: pdb

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/site.rst
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ Module contents

.. _site-commandline:

Command Line Interface
Command-line Interface
----------------------

.. program:: site
Expand Down
2 changes: 2 additions & 0 deletions Doc/library/webbrowser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ 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:

.. program:: webbrowser

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