Commit 590350d0 authored by Stefan Behnel's avatar Stefan Behnel

let the cmd line option '-v' mean '--verbose', which is the most common meaning

parent 9ff72ded
...@@ -12,7 +12,7 @@ Cython language. Cython is based on Pyrex by Greg Ewing. ...@@ -12,7 +12,7 @@ Cython language. Cython is based on Pyrex by Greg Ewing.
Usage: cython [options] sourcefile.pyx ... Usage: cython [options] sourcefile.pyx ...
Options: 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 -l, --create-listing Write error messages to a listing file
-I, --include-dir <directory> Search for include files in named directory -I, --include-dir <directory> Search for include files in named directory
(multiply include directories are allowed). (multiply include directories are allowed).
...@@ -96,7 +96,7 @@ def parse_command_line(args): ...@@ -96,7 +96,7 @@ def parse_command_line(args):
while args: while args:
if args[0].startswith("-"): if args[0].startswith("-"):
option = pop_arg() option = pop_arg()
if option in ("-v", "--version"): if option in ("-V", "--version"):
options.show_version = 1 options.show_version = 1
elif option in ("-l", "--create-listing"): elif option in ("-l", "--create-listing"):
options.use_listing_file = 1 options.use_listing_file = 1
...@@ -121,6 +121,8 @@ def parse_command_line(args): ...@@ -121,6 +121,8 @@ def parse_command_line(args):
options.timestamps = 1 options.timestamps = 1
elif option in ("-f", "--force"): elif option in ("-f", "--force"):
options.timestamps = 0 options.timestamps = 0
elif option in ("-v", "--verbose"):
options.verbose += 1
elif option in ("-p", "--embed-positions"): elif option in ("-p", "--embed-positions"):
Options.embed_pos_in_docstring = 1 Options.embed_pos_in_docstring = 1
elif option in ("-z", "--pre-import"): elif option in ("-z", "--pre-import"):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment