Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d2178924
Commit
d2178924
authored
Apr 10, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -t option to set the Py_TabcheckFlag flag.
parent
a0fb506e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
Modules/main.c
Modules/main.c
+10
-5
No files found.
Modules/main.c
View file @
d2178924
...
...
@@ -67,21 +67,22 @@ static char *usage_top = "\
Options and arguments (and corresponding environment variables):
\n
\
-d : debug output from parser (also PYTHONDEBUG=x)
\n
\
-i : inspect interactively after running script, (also PYTHONINSPECT=x)
\n
\
and force prompts, even if stdin does not appear to be a terminal
.
\n
\
-O : optimize generated bytecode (a tad
)
.
\n
\
and force prompts, even if stdin does not appear to be a terminal
\n
\
-O : optimize generated bytecode (a tad.
\n
\
-S : don't imply 'import site' on initialization
\n
\
-
u : unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x
)
\n
\
-
t : issue warnings about inconsistent tab usage (-tt: issue errors
)
\n
\
"
;
static
char
*
usage_mid
=
"\
-u : unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x)
\n
\
-v : verbose (trace import statements) (also PYTHONVERBOSE=x)
\n
\
-x : skip first line of source, allowing use of non-Unix forms of #!cmd
\n
\
-X : disable class based built-in exceptions
\n
\
-c cmd : program passed in as string (terminates option list)
\n
\
file : program read from script file
\n
\
- : program read from stdin (default; interactive mode if a tty)
\n
\
arg ...: arguments passed to program in sys.argv[1:]
\n
\
"
;
static
char
*
usage_bot
=
"\
arg ...: arguments passed to program in sys.argv[1:]
\n
\
Other environment variables:
\n
\
PYTHONSTARTUP: file executed on interactive startup (no default)
\n
\
PYTHONPATH : '%c'-separated list of directories prefixed to the
\n
\
...
...
@@ -117,7 +118,7 @@ Py_Main(argc, argv)
if
((
p
=
getenv
(
"PYTHONUNBUFFERED"
))
&&
*
p
!=
'\0'
)
unbuffered
=
1
;
while
((
c
=
getopt
(
argc
,
argv
,
"c:diOSuvxX"
))
!=
EOF
)
{
while
((
c
=
getopt
(
argc
,
argv
,
"c:diOS
t
uvxX"
))
!=
EOF
)
{
if
(
c
==
'c'
)
{
/* -c is the last option; following arguments
that look like options are left for the
...
...
@@ -150,6 +151,10 @@ Py_Main(argc, argv)
Py_NoSiteFlag
++
;
break
;
case
't'
:
Py_TabcheckFlag
++
;
break
;
case
'u'
:
unbuffered
++
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment