diff options
author | Éric <merwok@netwok.org> | 2022-05-26 10:31:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 10:31:39 -0400 |
commit | da397194832c4b8db8446af42919d8ad47b3cb4a (patch) | |
tree | 607d26cdad610d09cfc3f86a469b68c97695eca6 /Python/initconfig.c | |
parent | 06dd26f89f35b6d6ef4b68c169cb6c675af7e4a4 (diff) | |
download | cpython-git-da397194832c4b8db8446af42919d8ad47b3cb4a.tar.gz |
gh-93217: fix some issues in man page and --help (#93219)
Diffstat (limited to 'Python/initconfig.c')
-rw-r--r-- | Python/initconfig.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c index a623973f95..5c9c7ee41e 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -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\ debug builds); also PYTHONDEBUG=x\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[] = "\ -i : inspect interactively after running script; forces a prompt even\n\ @@ -65,7 +65,6 @@ static const char usage_3[] = "\ also PYTHONWARNINGS=arg\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\ -\n\ -X faulthandler: enable faulthandler\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\ @@ -82,7 +81,8 @@ static const char usage_3[] = "\ checks which are too expensive to be enabled by default. Effect of the\n\ developer mode:\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 asyncio debug mode\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\ -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\ -\n\ --check-hash-based-pycs always|default|never:\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" " 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" -" 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"; #if defined(MS_WINDOWS) |