Changed compiler directive option from -O to -X
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Fri, 15 Aug 2008 20:48:30 +0000 (22:48 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Fri, 15 Aug 2008 20:48:30 +0000 (22:48 +0200)
Cython/Compiler/CmdLine.py

index 52f76080e86c90a7a20da3d71ec2713dbea8b895..34e891e6a437648da36c6dd3d9f2e0fab9d04f3a 100644 (file)
@@ -38,7 +38,7 @@ Options:
   -a, --annotate                 Produce a colorized HTML version of the source.
   --convert-range                Convert for loops using range() function to for...from loops. 
   --cplus                        Output a c++ rather than c file.
-  -O, --option <name>=<value>[,<name=value,...] Overrides an optimization/code generation option
+  -X, --directive <name>=<value>[,<name=value,...] Overrides a compiler directive
 """
 #The following experimental options are supported only on MacOSX:
 #  -C, --compile    Compile generated .c file to .o file
@@ -114,11 +114,11 @@ def parse_command_line(args):
                 Options.annotate = True
             elif option == "--convert-range":
                 Options.convert_range = True
-            elif option in ("-O", "--option"):
+            elif option in ("-X", "--directive"):
                 try:
                     options.pragma_overrides = Options.parse_option_list(pop_arg())
                 except ValueError, e:
-                    sys.stderr.write("Error in option string: %s\n" % e.message)
+                    sys.stderr.write("Error in compiler directive: %s\n" % e.message)
                     sys.exit(1)
             else:
                 bad_usage()