From ec4efd267bd937c79326f056f02d5c7ab447d595 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 30 Dec 2010 08:44:24 +0100 Subject: [PATCH] support -h/--help in cmd line utility --- Cython/Compiler/CmdLine.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.26.2