mirror of
https://github.com/python/cpython.git
synced 2026-01-26 12:55:08 +00:00
gh-130160: Add anchors to CLI Usage section for cmdline (#133182)
This commit is contained in:
parent
3d14805947
commit
cc6b62ac56
@ -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>`
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -283,7 +283,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
|
||||
@ -296,7 +296,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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1788,7 +1788,7 @@ Buffer flags
|
||||
|
||||
.. _inspect-module-cli:
|
||||
|
||||
Command Line Interface
|
||||
Command-line interface
|
||||
----------------------
|
||||
|
||||
The :mod:`inspect` module also provides a basic introspection capability
|
||||
|
||||
@ -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
|
||||
|
||||
@ -270,7 +270,7 @@ Module contents
|
||||
|
||||
.. _site-commandline:
|
||||
|
||||
Command Line Interface
|
||||
Command-line interface
|
||||
----------------------
|
||||
|
||||
.. program:: site
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user