diff options
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']: |