diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-04 09:07:26 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-04 09:07:26 -0500 |
commit | 0182926a873072d7062b8db17c15d345e8054193 (patch) | |
tree | fe8357abd9b2c11c75566a90fea7fc02e79fd364 /coverage/cmdline.py | |
parent | 9e4908f37c370250ebc7836e744a59170720a9e3 (diff) | |
download | python-coveragepy-git-0182926a873072d7062b8db17c15d345e8054193.tar.gz |
Move some cmdline code to a more logical place.
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 fe8da549..27c28d48 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']: |