removed support for passing more than a single spider on 'scrapy crawl' command

This commit is contained in:
Pablo Hoffman 2011-08-08 15:51:22 -03:00
parent 436ad63930
commit 2108517ce0
1 changed files with 2 additions and 0 deletions

View File

@ -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)