summaryrefslogtreecommitdiff
path: root/coverage/cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r--coverage/cmdline.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py
index fd697344..f6eb052d 100644
--- a/coverage/cmdline.py
+++ b/coverage/cmdline.py
@@ -248,7 +248,7 @@ CMDS = {
Opts.ignore_errors,
Opts.omit,
Opts.help,
- ]
+ ],
cmd = "xml",
usage = "[options]",
description = "Generate an XML report of coverage results."
@@ -354,13 +354,14 @@ class CoverageScript:
"You must specify at least one of -e, -x, -c, -r, -a, or -b."
)
return ERR
- args_needed = (
+ args_allowed = (
'execute' in options.actions or
'annotate' in options.actions or
'html' in options.actions or
- 'report' in options.actions
+ 'report' in options.actions or
+ 'xml' in options.actions
)
- if not args_needed and args:
+ if not args_allowed and args:
self.help_fn("Unexpected arguments: %s" % " ".join(args))
return ERR