@@ -29,7 +29,7 @@ static char **orig_argv;
2929static int orig_argc ;
3030
3131/* command line options */
32- #define BASE_OPTS "c:dD:EhiOStuUvVW :xX"
32+ #define BASE_OPTS "c:dEhiOQ:StuUvVW :xX"
3333
3434#ifndef RISCOS
3535#define PROGRAM_OPTS BASE_OPTS
@@ -50,15 +50,15 @@ static char *usage_1 = "\
5050Options and arguments (and corresponding environment variables):\n\
5151-c cmd : program passed in as string (terminates option list)\n\
5252-d : debug output from parser (also PYTHONDEBUG=x)\n\
53- -D arg : division options: -Dold (default), -Dwarn, -Dnew\n\
5453-E : ignore environment variables (such as PYTHONPATH)\n\
5554-h : print this help message and exit\n\
56- " ;
57- static char * usage_2 = "\
5855-i : inspect interactively after running script, (also PYTHONINSPECT=x)\n\
5956 and force prompts, even if stdin does not appear to be a terminal\n\
57+ " ;
58+ static char * usage_2 = "\
6059-O : optimize generated bytecode (a tad; also PYTHONOPTIMIZE=x)\n\
6160-OO : remove doc-strings in addition to the -O optimizations\n\
61+ -Q arg : division options: -Qold (default), -Qwarn, -Qnew\n\
6262-S : don't imply 'import site' on initialization\n\
6363-t : issue warnings about inconsistent tab usage (-tt: issue errors)\n\
6464-u : unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x)\n\
@@ -155,7 +155,7 @@ Py_Main(int argc, char **argv)
155155 Py_DebugFlag ++ ;
156156 break ;
157157
158- case 'D ' :
158+ case 'Q ' :
159159 if (strcmp (_PyOS_optarg , "old" ) == 0 ) {
160160 Py_DivisionWarningFlag = 0 ;
161161 break ;
@@ -170,8 +170,8 @@ Py_Main(int argc, char **argv)
170170 break ;
171171 }
172172 fprintf (stderr ,
173- "-D option should be "
174- "`-Dold ', `-Dwarn ' or `-Dnew ' only\n" );
173+ "-Q option should be "
174+ "`-Qold ', `-Qwarn ' or `-Qnew ' only\n" );
175175 usage (2 , argv [0 ]);
176176 /* NOTREACHED */
177177
0 commit comments