From 86c7f37d6a877509fb145d41138f43f9b0490231 Mon Sep 17 00:00:00 2001 From: olveyra Date: Sun, 27 Jul 2008 16:11:23 +0000 Subject: [PATCH] moved options nocache and nopipeline from decobot to scrapy --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40127 --- scrapy/trunk/scrapy/command/commands/crawl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scrapy/trunk/scrapy/command/commands/crawl.py b/scrapy/trunk/scrapy/command/commands/crawl.py index cb176d2b2..866ce16c9 100644 --- a/scrapy/trunk/scrapy/command/commands/crawl.py +++ b/scrapy/trunk/scrapy/command/commands/crawl.py @@ -13,6 +13,8 @@ class Command(ScrapyCommand): def add_options(self, parser): ScrapyCommand.add_options(self, parser) + parser.add_option("--nocache", dest="nocache", action="store_true", help="disable HTTP cache") + parser.add_option("--nopipeline", dest="nopipeline", action="store_true", help="disable scraped item pipeline") parser.add_option("--restrict", dest="restrict", action="store_true", help="restrict crawling only to the given urls") parser.add_option("--record", dest="record", help="use FILE for recording session (see replay command)", metavar="FILE") parser.add_option("--record-dir", dest="recorddir", help="use DIR for recording (instead of file)", metavar="DIR")