From: Stefan Behnel Date: Sat, 9 Aug 2008 10:32:09 +0000 (+0200) Subject: let the cmd line option '-v' mean '--verbose', which is the most common meaning X-Git-Tag: 0.9.8.1~80 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=590350d0f273dbaa811ed6d2712e330d2250733b;p=cython.git let the cmd line option '-v' mean '--verbose', which is the most common meaning --- diff --git a/Cython/Compiler/CmdLine.py b/Cython/Compiler/CmdLine.py index 3275a224..ee9db629 100644 --- a/Cython/Compiler/CmdLine.py +++ b/Cython/Compiler/CmdLine.py @@ -12,7 +12,7 @@ Cython language. Cython is based on Pyrex by Greg Ewing. Usage: cython [options] sourcefile.pyx ... Options: - -v, --version Display version number of cython compiler + -V, --version Display version number of cython compiler -l, --create-listing Write error messages to a listing file -I, --include-dir Search for include files in named directory (multiply include directories are allowed). @@ -96,7 +96,7 @@ def parse_command_line(args): while args: if args[0].startswith("-"): option = pop_arg() - if option in ("-v", "--version"): + if option in ("-V", "--version"): options.show_version = 1 elif option in ("-l", "--create-listing"): options.use_listing_file = 1 @@ -121,6 +121,8 @@ def parse_command_line(args): options.timestamps = 1 elif option in ("-f", "--force"): options.timestamps = 0 + elif option in ("-v", "--verbose"): + options.verbose += 1 elif option in ("-p", "--embed-positions"): Options.embed_pos_in_docstring = 1 elif option in ("-z", "--pre-import"):