diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-24 23:03:48 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-24 23:03:48 -0400 |
commit | 78ea835a56c32a2d4c4d83320af6aa3f799a21d3 (patch) | |
tree | b6c7837277355f4e2e0d0e9b342a8ab60a8e43cd /coverage/cmdline.py | |
parent | ca35e008b8cb656cdbb906cc37db8e3aff5fe429 (diff) | |
download | python-coveragepy-git-78ea835a56c32a2d4c4d83320af6aa3f799a21d3.tar.gz |
Don't use -o for 'omit' in the new command syntax: it should mean output.
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r-- | coverage/cmdline.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py index 587fac51..8d9c239f 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -31,12 +31,18 @@ class Opts: help="Show line numbers of statements in each module that weren't " "executed." ) - omit = optparse.Option( + old_omit = optparse.Option( '-o', '--omit', action='store', metavar="PRE1,PRE2,...", help="Omit files when their filename path starts with one of these " "prefixes." ) + omit = optparse.Option( + '', '--omit', action='store', + metavar="PRE1,PRE2,...", + help="Omit files when their filename path starts with one of these " + "prefixes." + ) parallel_mode = optparse.Option( '-p', '--parallel-mode', action='store_true', help="Include the machine name and process id in the .coverage " @@ -123,7 +129,7 @@ class ClassicOptionParser(CoverageOptionParser): Opts.ignore_errors, Opts.pylib, Opts.show_missing, - Opts.omit, + Opts.old_omit, Opts.parallel_mode, Opts.timid, ]) |