summaryrefslogtreecommitdiff
path: root/coverage/cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-09-13 18:31:26 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-09-13 18:31:26 -0400
commit45a968fd8cce233722108df0aec10ef019a873de (patch)
tree08df6c6494bfc5441c19e662d096cde909742ac4 /coverage/cmdline.py
parent02c9a25ecd0762cdb26c0c6ac9e817f6e92ccc43 (diff)
downloadpython-coveragepy-45a968fd8cce233722108df0aec10ef019a873de.tar.gz
XML reporting hooked up, but not everything is right: a test_farm test fails now??
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 fd69734..f6eb052 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