From: Stefan Behnel Date: Thu, 30 Dec 2010 07:44:24 +0000 (+0100) Subject: support -h/--help in cmd line utility X-Git-Tag: 0.14.1rc0~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ec4efd267bd937c79326f056f02d5c7ab447d595;p=cython.git support -h/--help in cmd line utility --- diff --git a/Cython/Compiler/CmdLine.py b/Cython/Compiler/CmdLine.py index d7e5fb6e..eaf1b908 100644 --- a/Cython/Compiler/CmdLine.py +++ b/Cython/Compiler/CmdLine.py @@ -143,6 +143,9 @@ def parse_command_line(args): else: sys.stderr.write("Unknown debug flag: %s\n" % option) bad_usage() + elif option in ('-h', '--help'): + sys.stdout.write(usage) + sys.exit(0) else: sys.stderr.write("Unknown compiler flag: %s\n" % option) sys.exit(1)