summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coverage/cmdline.py3
-rw-r--r--tests/test_cmdline.py4
2 files changed, 6 insertions, 1 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py
index 7137852d..edbc1d25 100644
--- a/coverage/cmdline.py
+++ b/coverage/cmdline.py
@@ -622,7 +622,8 @@ class CoverageScript(object):
if getattr(options, opt_name) is not None:
self.help_fn(
"Options affecting multiprocessing must only be specified "
- "in a configuration file."
+ "in a configuration file.\n"
+ "Remove --{} from the command line.".format(opt_name)
)
return ERR
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index db89137b..39827ff5 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -473,6 +473,10 @@ class CmdLineTest(BaseCmdLineTest):
"Options affecting multiprocessing must only be specified in a configuration file.",
self.stderr()
)
+ self.assertIn(
+ "Remove --branch from the command line.",
+ self.stderr()
+ )
def test_run_debug(self):
self.cmd_executes("run --debug=opt1 foo.py", """\