From 0182926a873072d7062b8db17c15d345e8054193 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 4 Dec 2009 09:07:26 -0500 Subject: Move some cmdline code to a more logical place. --- coverage/cmdline.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'coverage/cmdline.py') 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']: -- cgit v1.2.1