summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coverage/cmdline.py5
-rw-r--r--doc/python-coverage.1.txt15
2 files changed, 18 insertions, 2 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py
index 487f9699..9c9ae868 100644
--- a/coverage/cmdline.py
+++ b/coverage/cmdline.py
@@ -349,13 +349,13 @@ CMDS = {
"debug", GLOBAL_ARGS,
usage="<topic>",
description=(
- "Display information on the internals of coverage.py, "
+ "Display information about the internals of coverage.py, "
"for diagnosing problems. "
"Topics are: "
"'data' to show a summary of the collected data; "
"'sys' to show installation information; "
"'config' to show the configuration; "
- "or 'premain' to show what is calling coverage."
+ "'premain' to show what is calling coverage."
),
),
@@ -831,6 +831,7 @@ HELP_TOPICS = {
Commands:
annotate Annotate source files with execution information.
combine Combine a number of data files.
+ debug Display information about the internals of coverage.py
erase Erase previously collected coverage data.
help Get help on using coverage.py.
html Create an HTML report.
diff --git a/doc/python-coverage.1.txt b/doc/python-coverage.1.txt
index 99ca352c..a9895482 100644
--- a/doc/python-coverage.1.txt
+++ b/doc/python-coverage.1.txt
@@ -43,6 +43,9 @@ COMMAND OVERVIEW
|command| **combine**
Combine a number of data files.
+|command| **debug**
+ Display information about the internals of coverage.py.
+
|command| **erase**
Erase previously collected coverage data.
@@ -116,6 +119,18 @@ COMMAND REFERENCE
Append coverage data to .coverage, otherwise it starts clean each
time.
+**debug** `TOPIC` ...
+
+ Display information about the internals of coverage.py, for diagnosing
+ problems.
+
+ Topics are:
+
+ ``data`` to show a summary of the collected data;
+ ``sys`` to show installation information;
+ ``config`` to show the configuration;
+ ``premain`` to show what is calling coverage.
+
**erase**
Erase previously collected coverage data.