mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-93217: fix some issues in man page and --help (GH-93219)
(cherry picked from commit da39719483
)
Co-authored-by: Éric <merwok@netwok.org>
This commit is contained in:
parent
9555d77953
commit
33336e46da
2 changed files with 20 additions and 8 deletions
|
@ -69,10 +69,10 @@ python \- an interpreted, interactive, object-oriented programming language
|
||||||
.B \-x
|
.B \-x
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
[
|
|
||||||
.B \-X
|
.B \-X
|
||||||
.I option
|
.I option
|
||||||
]
|
]
|
||||||
|
[
|
||||||
.B \-?
|
.B \-?
|
||||||
]
|
]
|
||||||
.br
|
.br
|
||||||
|
@ -310,7 +310,8 @@ Set implementation specific option. The following options are available:
|
||||||
more verbose than the default if the code is correct: new warnings are
|
more verbose than the default if the code is correct: new warnings are
|
||||||
only emitted when an issue is detected. Effect of the developer mode:
|
only emitted when an issue is detected. Effect of the developer mode:
|
||||||
* Add default warning filter, as -W default
|
* Add default warning filter, as -W default
|
||||||
* Install debug hooks on memory allocators: see the PyMem_SetupDebugHooks() C function
|
* Install debug hooks on memory allocators: see the PyMem_SetupDebugHooks()
|
||||||
|
C function
|
||||||
* Enable the faulthandler module to dump the Python traceback on a crash
|
* Enable the faulthandler module to dump the Python traceback on a crash
|
||||||
* Enable asyncio debug mode
|
* Enable asyncio debug mode
|
||||||
* Set the dev_mode attribute of sys.flags to True
|
* Set the dev_mode attribute of sys.flags to True
|
||||||
|
@ -321,7 +322,19 @@ Set implementation specific option. The following options are available:
|
||||||
otherwise activate automatically). See PYTHONUTF8 for more details
|
otherwise activate automatically). See PYTHONUTF8 for more details
|
||||||
|
|
||||||
-X pycache_prefix=PATH: enable writing .pyc files to a parallel tree rooted at the
|
-X pycache_prefix=PATH: enable writing .pyc files to a parallel tree rooted at the
|
||||||
given directory instead of to the code tree.
|
given directory instead of to the code tree.
|
||||||
|
|
||||||
|
-X warn_default_encoding: enable opt-in EncodingWarning for 'encoding=None'
|
||||||
|
|
||||||
|
-X no_debug_ranges: disable the inclusion of the tables mapping extra location
|
||||||
|
information (end line, start column offset and end column offset) to every
|
||||||
|
instruction in code objects. This is useful when smaller code objects and pyc
|
||||||
|
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
|
||||||
|
The default is "on" (or "off" if you are running a local build).
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B \-x
|
.B \-x
|
||||||
Skip the first line of the source. This is intended for a DOS
|
Skip the first line of the source. This is intended for a DOS
|
||||||
|
|
|
@ -38,7 +38,7 @@ Options and arguments (and corresponding environment variables):\n\
|
||||||
-d : turn on parser debugging output (for experts only, only works on\n\
|
-d : turn on parser debugging output (for experts only, only works on\n\
|
||||||
debug builds); also PYTHONDEBUG=x\n\
|
debug builds); also PYTHONDEBUG=x\n\
|
||||||
-E : ignore PYTHON* environment variables (such as PYTHONPATH)\n\
|
-E : ignore PYTHON* environment variables (such as PYTHONPATH)\n\
|
||||||
-h : print this help message and exit (also --help)\n\
|
-h : print this help message and exit (also -? or --help)\n\
|
||||||
";
|
";
|
||||||
static const char usage_2[] = "\
|
static const char usage_2[] = "\
|
||||||
-i : inspect interactively after running script; forces a prompt even\n\
|
-i : inspect interactively after running script; forces a prompt even\n\
|
||||||
|
@ -65,7 +65,6 @@ static const char usage_3[] = "\
|
||||||
also PYTHONWARNINGS=arg\n\
|
also PYTHONWARNINGS=arg\n\
|
||||||
-x : skip first line of source, allowing use of non-Unix forms of #!cmd\n\
|
-x : skip first line of source, allowing use of non-Unix forms of #!cmd\n\
|
||||||
-X opt : set implementation-specific option. The following options are available:\n\
|
-X opt : set implementation-specific option. The following options are available:\n\
|
||||||
\n\
|
|
||||||
-X faulthandler: enable faulthandler\n\
|
-X faulthandler: enable faulthandler\n\
|
||||||
-X showrefcount: output the total reference count and number of used\n\
|
-X showrefcount: output the total reference count and number of used\n\
|
||||||
memory blocks when the program finishes or after each statement in the\n\
|
memory blocks when the program finishes or after each statement in the\n\
|
||||||
|
@ -82,7 +81,8 @@ static const char usage_3[] = "\
|
||||||
checks which are too expensive to be enabled by default. Effect of the\n\
|
checks which are too expensive to be enabled by default. Effect of the\n\
|
||||||
developer mode:\n\
|
developer mode:\n\
|
||||||
* Add default warning filter, as -W default\n\
|
* Add default warning filter, as -W default\n\
|
||||||
* Install debug hooks on memory allocators: see the PyMem_SetupDebugHooks() C function\n\
|
* Install debug hooks on memory allocators: see the PyMem_SetupDebugHooks()\n\
|
||||||
|
C function\n\
|
||||||
* Enable the faulthandler module to dump the Python traceback on a crash\n\
|
* Enable the faulthandler module to dump the Python traceback on a crash\n\
|
||||||
* Enable asyncio debug mode\n\
|
* Enable asyncio debug mode\n\
|
||||||
* Set the dev_mode attribute of sys.flags to True\n\
|
* Set the dev_mode attribute of sys.flags to True\n\
|
||||||
|
@ -100,7 +100,6 @@ static const char usage_3[] = "\
|
||||||
when the interpreter displays tracebacks.\n\
|
when the interpreter displays tracebacks.\n\
|
||||||
-X frozen_modules=[on|off]: whether or not frozen modules should be used.\n\
|
-X frozen_modules=[on|off]: whether or not frozen modules should be used.\n\
|
||||||
The default is \"on\" (or \"off\" if you are running a local build).\n\
|
The default is \"on\" (or \"off\" if you are running a local build).\n\
|
||||||
\n\
|
|
||||||
--check-hash-based-pycs always|default|never:\n\
|
--check-hash-based-pycs always|default|never:\n\
|
||||||
control how Python invalidates hash-based .pyc files\n\
|
control how Python invalidates hash-based .pyc files\n\
|
||||||
";
|
";
|
||||||
|
@ -141,7 +140,7 @@ static const char usage_6[] =
|
||||||
"PYTHONNODEBUGRANGES: If this variable is set, it disables the inclusion of the \n"
|
"PYTHONNODEBUGRANGES: If this variable is set, it disables the inclusion of the \n"
|
||||||
" tables mapping extra location information (end line, start column offset \n"
|
" tables mapping extra location information (end line, start column offset \n"
|
||||||
" and end column offset) to every instruction in code objects. This is useful \n"
|
" and end column offset) to every instruction in code objects. This is useful \n"
|
||||||
" when smaller cothe de objects and pyc files are desired as well as suppressing the \n"
|
" when smaller code objects and pyc files are desired as well as suppressing the \n"
|
||||||
" extra visual location indicators when the interpreter displays tracebacks.\n";
|
" extra visual location indicators when the interpreter displays tracebacks.\n";
|
||||||
|
|
||||||
#if defined(MS_WINDOWS)
|
#if defined(MS_WINDOWS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue