summaryrefslogtreecommitdiff
path: root/coverage/cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r--coverage/cmdline.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py
index 14921145..1fa52a97 100644
--- a/coverage/cmdline.py
+++ b/coverage/cmdline.py
@@ -710,7 +710,7 @@ class CoverageScript:
command_line = self.coverage.get_option("run:command_line")
if command_line is not None:
args = shlex.split(command_line)
- if args and args[0] == "-m":
+ if args and args[0] in {"-m", "--module"}:
options.module = True
args = args[1:]
if not args: