From: Dag Sverre Seljebotn Date: Wed, 15 Apr 2009 20:03:27 +0000 (+0200) Subject: Deprecation warning for -X switch X-Git-Tag: 0.11.1~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=445b3458f74abe27be5a331d546d854ec1a296c6;p=cython.git Deprecation warning for -X switch --- diff --git a/Cython/Compiler/CmdLine.py b/Cython/Compiler/CmdLine.py index a423d2ac..2c8ed428 100644 --- a/Cython/Compiler/CmdLine.py +++ b/Cython/Compiler/CmdLine.py @@ -38,8 +38,9 @@ Options: -a, --annotate Produce a colorized HTML version of the source. --line-directives Produce #line directives pointing to the .pyx source --cplus Output a c++ rather than c file. - -X, --directive =[,=[,>sys.stderr, "Deprecation warning: The -X command line switch will be changed to a" + print >>sys.stderr, "shorthand for --directive in Cython 0.12. Please use --link instead." + print >>sys.stderr options.c_only = 0 options.obj_only = 0 elif option in ("-+", "--cplus"):