summaryrefslogtreecommitdiff
path: root/coverage/cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r--coverage/cmdline.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py
index 51aa5fe5..58f4817f 100644
--- a/coverage/cmdline.py
+++ b/coverage/cmdline.py
@@ -19,9 +19,12 @@ class Opts(object):
'', '--branch', action='store_true',
help="Measure branch coverage in addition to statement coverage."
)
+ CONCURRENCY_CHOICES = ["thread", "gevent", "greenlet", "eventlet"]
concurrency = optparse.make_option(
'', '--concurrency', action='store', metavar="LIB",
- help="Properly measure code using a concurrency library."
+ choices=CONCURRENCY_CHOICES,
+ help="Properly measure code using a concurrency library. "
+ "Valid values are: %s." % ", ".join(CONCURRENCY_CHOICES)
)
debug = optparse.make_option(
'', '--debug', action='store', metavar="OPTS",