From 590350d0f273dbaa811ed6d2712e330d2250733b Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 9 Aug 2008 12:32:09 +0200 Subject: [PATCH] let the cmd line option '-v' mean '--verbose', which is the most common meaning --- Cython/Compiler/CmdLine.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"): -- 2.26.2