diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-09-25 06:40:09 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-09-25 06:40:09 -0400 |
commit | fe9ea16b667d2a89d94f09b52c58b54e209874c2 (patch) | |
tree | 10c82eec6405690ce91bd8c9636c30522ebb74eb /coverage/cmdline.py | |
parent | ea3b37c5b62d835ab301d7f35da72d3e4b2f3292 (diff) | |
download | python-coveragepy-fe9ea16b667d2a89d94f09b52c58b54e209874c2.tar.gz |
Some error checking and more tests for concurrency control.
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r-- | coverage/cmdline.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py index 51aa5fe..58f4817 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", |