From 445b3458f74abe27be5a331d546d854ec1a296c6 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Wed, 15 Apr 2009 22:03:27 +0200 Subject: [PATCH] Deprecation warning for -X switch --- Cython/Compiler/CmdLine.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"): -- 2.26.2