Skip to content

Commit c1c1c6c

Browse files
committed
Add 'coverage debug' to help
1 parent 29538d9 commit c1c1c6c

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

coverage/cmdline.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,13 @@ def get_prog_name(self):
349349
"debug", GLOBAL_ARGS,
350350
usage="<topic>",
351351
description=(
352-
"Display information on the internals of coverage.py, "
352+
"Display information about the internals of coverage.py, "
353353
"for diagnosing problems. "
354354
"Topics are: "
355355
"'data' to show a summary of the collected data; "
356356
"'sys' to show installation information; "
357357
"'config' to show the configuration; "
358-
"or 'premain' to show what is calling coverage."
358+
"'premain' to show what is calling coverage."
359359
),
360360
),
361361

@@ -831,6 +831,7 @@ def unglob_args(args):
831831
Commands:
832832
annotate Annotate source files with execution information.
833833
combine Combine a number of data files.
834+
debug Display information about the internals of coverage.py
834835
erase Erase previously collected coverage data.
835836
help Get help on using coverage.py.
836837
html Create an HTML report.

doc/python-coverage.1.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ COMMAND OVERVIEW
4343
|command| **combine**
4444
Combine a number of data files.
4545

46+
|command| **debug**
47+
Display information about the internals of coverage.py.
48+
4649
|command| **erase**
4750
Erase previously collected coverage data.
4851

@@ -116,6 +119,18 @@ COMMAND REFERENCE
116119
Append coverage data to .coverage, otherwise it starts clean each
117120
time.
118121

122+
**debug** `TOPIC` ...
123+
124+
Display information about the internals of coverage.py, for diagnosing
125+
problems.
126+
127+
Topics are:
128+
129+
``data`` to show a summary of the collected data;
130+
``sys`` to show installation information;
131+
``config`` to show the configuration;
132+
``premain`` to show what is calling coverage.
133+
119134
**erase**
120135

121136
Erase previously collected coverage data.

0 commit comments

Comments
 (0)