summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-04-12 13:03:03 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-04-12 13:03:03 (GMT)
commit7a98d2730c42fc41fd28d622b46dd334e8a2a21d (patch)
tree311675264c619da17ac7b7c097af9d2a46cb7ead /Modules/main.c
parentd3ed4921644853d5dd29ed94c848a5cdedef59ef (diff)
downloadcpython-7a98d2730c42fc41fd28d622b46dd334e8a2a21d.zip
cpython-7a98d2730c42fc41fd28d622b46dd334e8a2a21d.tar.gz
cpython-7a98d2730c42fc41fd28d622b46dd334e8a2a21d.tar.bz2
Applied patch #2617 from Frank Wierzbicki wit some extras from me
-J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future.
Diffstat (limited to 'Modules/main.c')
-rw-r--r--Modules/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c
index a919740..8e02fe4 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -40,7 +40,7 @@ static char **orig_argv;
static int orig_argc;
/* command line options */
-#define BASE_OPTS "3bBc:dEhim:OQ:StuUvVW:xX?"
+#define BASE_OPTS "3bBc:dEhiJm:OQ:StuUvVW:xX?"
#ifndef RISCOS
#define PROGRAM_OPTS BASE_OPTS
@@ -349,6 +349,8 @@ Py_Main(int argc, char **argv)
Py_InteractiveFlag++;
break;
+ /* case 'J': reserved for Jython */
+
case 'O':
Py_OptimizeFlag++;
break;
@@ -388,6 +390,8 @@ Py_Main(int argc, char **argv)
skipfirstline = 1;
break;
+ /* case 'X': reserved for non-standard arguments */
+
case 'U':
Py_UnicodeFlag++;
break;