removed redundant --nopipelines function. same behaviour can be obtained by clearing the ITEM_PIPELINES setting

This commit is contained in:
Pablo Hoffman 2009-09-11 19:32:05 -03:00
parent 8d49dc2fb5
commit e854d0d6ef
1 changed files with 0 additions and 5 deletions

View File

@ -19,8 +19,6 @@ class Command(ScrapyCommand):
def add_options(self, parser):
ScrapyCommand.add_options(self, parser)
parser.add_option("--nopipeline", dest="nopipeline", action="store_true", \
help="disable scraped item pipeline")
parser.add_option("-n", "--nofollow", dest="nofollow", action="store_true", \
help="don't follow links (for use with URLs only)")
parser.add_option("-c", "--callback", dest="callback", action="store", \
@ -28,9 +26,6 @@ class Command(ScrapyCommand):
def process_options(self, args, opts):
ScrapyCommand.process_options(self, args, opts)
if opts.nopipeline:
settings.overrides['ITEM_PIPELINES'] = []
if opts.nofollow:
settings.overrides['CRAWLSPIDER_FOLLOW_LINKS'] = False