Commits

Ned Batchelder committed c546239

Move some cmdline code to a more logical place.

Comments (0)

Files changed (2)

     - Some way to focus in on red and yellow
         - Show only lines near highlights?
         - Jump to next highlight?
+            - Keyboard navigation: N and P
     - Cookie for changes to pyfile.html state.
     + Clickable column headers on the index page.
     + Syntax coloring in HTML report.

coverage/cmdline.py

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