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 | 5e09c8140d43822815a96c0020c92f0d62090e0c (patch) | |
| tree | 87930b170dc828aa7212b613bd79de03411169dd | |
| parent | 99a3e92e89c3e9d4a0dd73ae71b0b849d7fddbee (diff) | |
| download | python-coveragepy-5e09c8140d43822815a96c0020c92f0d62090e0c.tar.gz | |
Move some cmdline code to a more logical place.
| -rw-r--r-- | TODO.txt | 1 | ||||
| -rw-r--r-- | coverage/cmdline.py | 9 |
2 files changed, 6 insertions, 4 deletions
@@ -101,6 +101,7 @@ x Why can't you specify execute (-x) and report (-r) in the same invocation? - 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.
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']: |
