mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
gh-90300: split --help output into separate options (GH-30331)
Make --help output shorter and add new help options.
--help-env, --help-xoptions and --help-all command-line options are
added to complement --help.
(cherry picked from commit 8aa9d40b00
)
Co-authored-by: Éric <earaujo@caravan.coop>
This commit is contained in:
parent
29c7e815bc
commit
cbfbe248e3
6 changed files with 211 additions and 81 deletions
|
@ -84,6 +84,19 @@ python \- an interpreted, interactive, object-oriented programming language
|
|||
|
|
||||
.I never
|
||||
]
|
||||
.br
|
||||
[
|
||||
.B \--help
|
||||
]
|
||||
[
|
||||
.B \--help-env
|
||||
]
|
||||
[
|
||||
.B \--help-xoptions
|
||||
]
|
||||
[
|
||||
.B \--help-all
|
||||
]
|
||||
.br
|
||||
[
|
||||
.B \-c
|
||||
|
@ -149,6 +162,16 @@ the behavior of the interpreter.
|
|||
.B \-h ", " \-? ", "\-\-help
|
||||
Prints the usage for the interpreter executable and exits.
|
||||
.TP
|
||||
.B "\-\-help\-env"
|
||||
Prints help about Python-specific environment variables and exits.
|
||||
.TP
|
||||
.B "\-\-help\-xoptions"
|
||||
Prints help about implementation-specific \fB\-X\fP options and exits.
|
||||
.TP
|
||||
.TP
|
||||
.B "\-\-help\-all"
|
||||
Prints complete usage information and exits.
|
||||
.TP
|
||||
.B \-i
|
||||
When a script is passed as first argument or the \fB\-c\fP option is
|
||||
used, enter interactive mode after executing the script or the
|
||||
|
@ -287,7 +310,7 @@ a regular expression on the warning message.
|
|||
|
||||
.TP
|
||||
.BI "\-X " option
|
||||
Set implementation specific option. The following options are available:
|
||||
Set implementation-specific option. The following options are available:
|
||||
|
||||
-X faulthandler: enable faulthandler
|
||||
|
||||
|
@ -332,7 +355,7 @@ Set implementation specific option. The following options are available:
|
|||
files are desired as well as suppressing the extra visual location indicators
|
||||
when the interpreter displays tracebacks.
|
||||
|
||||
-X frozen_modules=[on|off]: whether or not frozen modules should be used
|
||||
-X frozen_modules=[on|off]: whether or not frozen modules should be used.
|
||||
The default is "on" (or "off" if you are running a local build).
|
||||
|
||||
.TP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue