From 2108517ce02038556b3629482275dbd791e64a65 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Mon, 8 Aug 2011 15:51:22 -0300 Subject: [PATCH] removed support for passing more than a single spider on 'scrapy crawl' command --- scrapy/commands/crawl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scrapy/commands/crawl.py b/scrapy/commands/crawl.py index 07409be1a..f97f907ee 100644 --- a/scrapy/commands/crawl.py +++ b/scrapy/commands/crawl.py @@ -27,6 +27,8 @@ class Command(ScrapyCommand): def run(self, args, opts): if len(args) < 1: raise UsageError() + elif len(args) > 1: + raise UsageError("running 'scrapy crawl' with more than one spider is no longer supported") for spname in args: spider = self.crawler.spiders.create(spname, **opts.spargs) self.crawler.crawl(spider)