summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coverage/cmdline.py18
-rw-r--r--coverage/control.py2
2 files changed, 10 insertions, 10 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py
index e1a447d2..a0184af8 100644
--- a/coverage/cmdline.py
+++ b/coverage/cmdline.py
@@ -34,9 +34,9 @@ class Opts(object):
)
include = optparse.Option(
'', '--include', action='store',
- metavar="PRE1,PRE2,...",
- help="Include files only when their filename path starts with one of "
- "these prefixes."
+ metavar="PAT1,PAT2,...",
+ help="Include files only when their filename path matches one of "
+ "these patterns. Usually needs quoting on the command line."
)
pylib = optparse.Option(
'-L', '--pylib', action='store_true',
@@ -50,15 +50,15 @@ class Opts(object):
)
old_omit = optparse.Option(
'-o', '--omit', action='store',
- metavar="PRE1,PRE2,...",
- help="Omit files when their filename path starts with one of these "
- "prefixes."
+ metavar="PAT1,PAT2,...",
+ help="Omit files when their filename matches one of these patterns. "
+ "Usually needs quoting on the command line."
)
omit = optparse.Option(
'', '--omit', action='store',
- metavar="PRE1,PRE2,...",
- help="Omit files when their filename path starts with one of these "
- "prefixes."
+ metavar="PAT1,PAT2,...",
+ help="Omit files when their filename matches one of these patterns. "
+ "Usually needs quoting on the command line."
)
output_xml = optparse.Option(
'-o', '', action='store', dest="outfile",
diff --git a/coverage/control.py b/coverage/control.py
index 6770a65e..4a0e675e 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -180,7 +180,7 @@ class coverage(object):
if canonical.startswith(self.cover_prefix):
return False
- # Check the file against the include and omit prefixes.
+ # Check the file against the include and omit patterns.
if self.include:
for pattern in self.include:
if fnmatch.fnmatch(canonical, pattern):