@@ -8,6 +8,9 @@ python \- an interpreted, interactive, object-oriented programming language
88.SH SYNOPSIS
99.B python
1010[
11+ .B \- B
12+ ]
13+ [
1114.B \- d
1215]
1316[
@@ -23,15 +26,21 @@ python \- an interpreted, interactive, object-oriented programming language
2326.B \- m
2427.I module-name
2528]
26- [
27- .B \- O
28- ]
2929.br
3030 [
31+ .B \- O
32+ ]
33+ [
34+ .B \- O0
35+ ]
36+ [
3137.B -Q
3238.I argument
3339]
3440[
41+ .B \- s
42+ ]
43+ [
3544.B \- S
3645]
3746[
@@ -51,6 +60,9 @@ python \- an interpreted, interactive, object-oriented programming language
5160[
5261.B \- x
5362]
63+ [
64+ .B \- ?
65+ ]
5466.br
5567 [
5668.B \- c
@@ -89,6 +101,11 @@ viewed by running the
89101program.
90102.SH COMMAND LINE OPTIONS
91103.TP
104+ .B \- B
105+ Don't write
106+ .I .py[co]
107+ files on import. See also PYTHONDONTWRITEBYTECODE.
108+ .TP
92109.BI " \- c " command
93110Specify the command to execute (see next section).
94111This terminates the option list (following options are passed as
@@ -102,7 +119,7 @@ compilation options).
102119Ignore environment variables like PYTHONPATH and PYTHONHOME that modify
103120the behavior of the interpreter.
104121.TP
105- .B \- h
122+ .B \- h ", " \- ? ", " \-\- help
106123Prints the usage for the interpreter executable and exits.
107124.TP
108125.B \- i
@@ -125,6 +142,9 @@ compiled (bytecode) files from
125142.I .pyc
126143to \fI .pyo \fP . Given twice, causes docstrings to be discarded.
127144.TP
145+ .B \- O0
146+ Discard docstrings in addition to the \fB -O \fP optimizations.
147+ .TP
128148.BI " \- Q " argument
129149Division control; see PEP 238. The argument must be one of "old" (the
130150default, int/int and long/long return an int or long), "new" (new
@@ -134,6 +154,9 @@ long/long), or "warnall" (old division semantics with a warning for
134154all use of the division operator). For a use of "warnall", see the
135155Tools/scripts/fixdiv.py script.
136156.TP
157+ .B \- s
158+ Don't add user site directory to sys.path.
159+ .TP
137160.B \- S
138161Disable the import of the module
139162.I site
@@ -156,7 +179,7 @@ twice, print a message for each file that is checked for when
156179searching for a module. Also provides information on module cleanup
157180at exit.
158181.TP
159- .B \- V
182+ .B \- V ", " \-\- version
160183Prints the Python version number of the executable and exits.
161184.TP
162185.BI " \- W " argument
@@ -353,9 +376,17 @@ specifying \fB\-O\fP multiple times.
353376If this is set to a non-empty string it is equivalent to specifying
354377the \fB \- d \fP option. If set to an integer, it is equivalent to
355378specifying \fB \- d \fP multiple times.
379+ .IP PYTHONDONTWRITEBYTECODE
380+ If this is set to a non-empty string it is equivalent to specifying
381+ the \fB \- B \fP option (don't try to write
382+ .I .py[co]
383+ files).
356384.IP PYTHONINSPECT
357385If this is set to a non-empty string it is equivalent to specifying
358386the \fB \- i \fP option.
387+ .IP PYTHONNOUSERSITE
388+ If this is set to a non-empty string it is equivalent to specifying
389+ the \fB \- s \fP option (Don't add the user site directory to sys.path).
359390.IP PYTHONUNBUFFERED
360391If this is set to a non-empty string it is equivalent to specifying
361392the \fB \- u \fP option.
0 commit comments