Kaydet (Commit) b674baf7 authored tarafından Guido van Rossum's avatar Guido van Rossum

Document -Q. Move arguments around to be in strict alphabetical

order.  Add breaks in SYNOPSIS.
üst 32aa5d2c
...@@ -7,16 +7,24 @@ python \- an interpreted, interactive, object-oriented programming language ...@@ -7,16 +7,24 @@ python \- an interpreted, interactive, object-oriented programming language
.B \-d .B \-d
] ]
[ [
.B \-E
]
[
.B \-h
]
[
.B \-i .B \-i
] ]
[ [
.B \-O .B \-O
] ]
[ .br
.B \-S [
.B -Q
.I argument
] ]
[ [
.B \-E .B \-S
] ]
[ [
.B \-t .B \-t
...@@ -25,13 +33,11 @@ python \- an interpreted, interactive, object-oriented programming language ...@@ -25,13 +33,11 @@ python \- an interpreted, interactive, object-oriented programming language
.B \-u .B \-u
] ]
[ [
.B \-v .B \-U
] ]
[ .br
.B \-x [
] .B \-v
[
.B \-h
] ]
[ [
.B \-V .B \-V
...@@ -40,6 +46,9 @@ python \- an interpreted, interactive, object-oriented programming language ...@@ -40,6 +46,9 @@ python \- an interpreted, interactive, object-oriented programming language
.B \-W .B \-W
.I argument .I argument
] ]
[
.B \-x
]
.br .br
[ [
.B \-c .B \-c
...@@ -78,10 +87,22 @@ viewed by running the ...@@ -78,10 +87,22 @@ viewed by running the
program. program.
.SH COMMAND LINE OPTIONS .SH COMMAND LINE OPTIONS
.TP .TP
.BI "\-c " command
Specify the command to execute (see next section).
This terminates the option list (following options are passed as
arguments to the command).
.TP
.B \-d .B \-d
Turn on parser debugging output (for wizards only, depending on Turn on parser debugging output (for wizards only, depending on
compilation options). compilation options).
.TP .TP
.B \-E
Ignore environment variables like PYTHONPATH and PYTHONHOME that modify
the behavior of the interpreter.
.TP
.B \-h
Prints the usage for the interpreter executable and exits.
.TP
.B \-i .B \-i
When a script is passed as first argument or the \fB\-c\fP option is 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 used, enter interactive mode after executing the script or the
...@@ -95,6 +116,15 @@ compiled (bytecode) files from ...@@ -95,6 +116,15 @@ compiled (bytecode) files from
.I .pyc .I .pyc
to \fI.pyo\fP. Given twice, causes docstrings to be discarded. to \fI.pyo\fP. Given twice, causes docstrings to be discarded.
.TP .TP
.BI "\-Q " argument
Division control; see PEP 238. The argument must be one of "old" (the
default, int/int and long/long return an int or long), "new" (new
division semantics, i.e. int/int and long/long returns a float),
"warn" (old division semantics with a warning for int/int and
long/long), or "warnall" (old division semantics with a warning for
all use of the division operator). For a use of "warnall", see the
Tools/scripts/fixdiv.py script.
.TP
.B \-S .B \-S
Disable the import of the module Disable the import of the module
.I site .I site
...@@ -102,10 +132,6 @@ and the site-dependent manipulations of ...@@ -102,10 +132,6 @@ and the site-dependent manipulations of
.I sys.path .I sys.path
that it entails. that it entails.
.TP .TP
.B \-E
Ignore environment variables like PYTHONPATH and PYTHONHOME that modify
the behavior of the interpreter.
.TP
.B \-t .B \-t
Issue a warning when a source file mixes tabs and spaces for Issue a warning when a source file mixes tabs and spaces for
indentation in a way that makes it depend on the worth of a tab indentation in a way that makes it depend on the worth of a tab
...@@ -121,14 +147,6 @@ twice, print a message for each file that is checked for when ...@@ -121,14 +147,6 @@ twice, print a message for each file that is checked for when
searching for a module. Also provides information on module cleanup searching for a module. Also provides information on module cleanup
at exit. at exit.
.TP .TP
.B \-x
Skip the first line of the source. This is intended for a DOS
specific hack only. Warning: the line numbers in error messages will
be off by one!
.TP
.B \-h
Prints the usage for the interpreter executable and exits.
.TP
.B \-V .B \-V
Prints the Python version number of the executable and exits. Prints the Python version number of the executable and exits.
.TP .TP
...@@ -197,10 +215,10 @@ case-sensitive. The ...@@ -197,10 +215,10 @@ case-sensitive. The
field matches the line number, where zero matches all line numbers and field matches the line number, where zero matches all line numbers and
is thus equivalent to an omitted line number. is thus equivalent to an omitted line number.
.TP .TP
.BI "\-c " command .B \-x
Specify the command to execute (see next section). Skip the first line of the source. This is intended for a DOS
This terminates the option list (following options are passed as specific hack only. Warning: the line numbers in error messages will
arguments to the command). be off by one!
.SH INTERPRETER INTERFACE .SH INTERPRETER INTERFACE
The interpreter interface resembles that of the UNIX shell: when The interpreter interface resembles that of the UNIX shell: when
called with standard input connected to a tty device, it prompts for called with standard input connected to a tty device, it prompts for
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment