diff options
author | Matthew Boehm <boehm.matthew@gmail.com> | 2016-06-02 18:04:45 -0400 |
---|---|---|
committer | Matthew Boehm <boehm.matthew@gmail.com> | 2016-06-02 18:04:45 -0400 |
commit | a7f29741a1d047acc350f68cf2b2aed5cfe20884 (patch) | |
tree | d441fb7332bb7ccb7d639a1be4a0a69bf7c3bb20 /coverage/cmdline.py | |
parent | a687993e47316febf1319bb8c6c758b07293291f (diff) | |
download | python-coveragepy-a7f29741a1d047acc350f68cf2b2aed5cfe20884.tar.gz |
Add support for `coverage debug config`
Previously, coverage --debug=config worked, but `coverage debug config` didn't.
Fixes #454
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r-- | coverage/cmdline.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py index 508a439..fdf1c3d 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -641,7 +641,7 @@ class CoverageScript(object): """Implementation of 'coverage debug'.""" if not args: - self.help_fn("What information would you like: data, sys?") + self.help_fn("What information would you like: config, data, sys?") return ERR for info in args: @@ -668,6 +668,11 @@ class CoverageScript(object): print(line) else: print("No data collected") + elif info == 'config': + print(info_header("config")) + config_info = self.coverage.config.__dict__.items() + for line in info_formatter(config_info): + print(" %s" % line) else: self.help_fn("Don't know what you mean by %r" % info) return ERR |