Skip to content

Commit bad4a74

Browse files
serhiy-storchakaadorilson
authored andcommitted
pythongh-90300: Fix undocumented envvars in the Python CLI help (pythonGH-116765)
1 parent 705e327 commit bad4a74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/initconfig.c

+3
Original file line numberDiff line numberDiff line change
@@ -310,15 +310,18 @@ static const char usage_envvars[] =
310310
" interpreter displays tracebacks. (-X no_debug_ranges)\n"
311311
"PYTHONNOUSERSITE: disable user site directory (-s)\n"
312312
"PYTHONOPTIMIZE : enable level 1 optimizations (-O)\n"
313+
"PYTHONPERFSUPPORT: support the Linux \"perf\" profiler (-X perf)\n"
313314
#ifdef Py_DEBUG
314315
"PYTHON_PRESITE=pkg.mod: import this module before site.py is run (-X presite)\n"
315316
#endif
317+
"PYTHONPROFILEIMPORTTIME: show how long each import takes (-X importtime)\n"
316318
"PYTHONPYCACHEPREFIX: root directory for bytecode cache (pyc) files\n"
317319
" (-X pycache_prefix)\n"
318320
"PYTHONSAFEPATH : don't prepend a potentially unsafe path to sys.path.\n"
319321
#ifdef Py_STATS
320322
"PYTHONSTATS : turns on statistics gathering (-X pystats)\n"
321323
#endif
324+
"PYTHONTRACEMALLOC: trace Python memory allocations (-X tracemalloc)\n"
322325
"PYTHONUNBUFFERED: disable stdout/stderr buffering (-u)\n"
323326
"PYTHONUTF8 : if set to 1, enable the UTF-8 mode (-X utf8)\n"
324327
"PYTHONVERBOSE : trace import statements (-v)\n"

0 commit comments

Comments
 (0)