diff options
author | Guido van Rossum <guido@python.org> | 1998-04-10 19:39:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-04-10 19:39:15 (GMT) |
commit | bba92ca555daeac987386a18ce16df2ea4cdebfe (patch) | |
tree | a3f4a94d26cfac3d85cd0a1c8b1b37c45e1407bf /Modules | |
parent | 29d465bef709dde8a0e433223d2ce71a7833ca14 (diff) | |
download | cpython-bba92ca555daeac987386a18ce16df2ea4cdebfe.zip cpython-bba92ca555daeac987386a18ce16df2ea4cdebfe.tar.gz cpython-bba92ca555daeac987386a18ce16df2ea4cdebfe.tar.bz2 |
Add -t option to set the Py_TabcheckFlag flag.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/main.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Modules/main.c b/Modules/main.c index b62597a..190f4fd 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -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:diOStuvxX")) != 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; |