diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-05 17:34:50 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-05 17:34:50 -0500 |
commit | 0aa535938e562fb9afa2b278b9d3bb7343d97dd9 (patch) | |
tree | 85c1cf5030cb7f12561a99014538727cbf26b735 /coverage/cmdline.py | |
parent | cbb95d50ed6a85e9bbfc028b05fa399b81a3253e (diff) | |
parent | e8b4b3abf90c299c5c3748fd756331cb7d382159 (diff) | |
download | python-coveragepy-0aa535938e562fb9afa2b278b9d3bb7343d97dd9.tar.gz |
Merged config changes to default. Let the 3.3 wild rumpus start!
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r-- | coverage/cmdline.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py index fe8da54..27c28d4 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -370,10 +370,6 @@ class CoverageScript(object): self.help_fn(parser=parser) return OK - if options.version: - self.help_fn(topic='version') - return OK - if "help" in options.actions: if args: for a in args: @@ -386,6 +382,11 @@ class CoverageScript(object): self.help_fn(topic='help') return OK + # Handle version. + if options.version: + self.help_fn(topic='version') + return OK + # Check for conflicts and problems in the options. for i in ['erase', 'execute']: for j in ['annotate', 'html', 'report', 'combine']: |