removed useless --restrict command line argument

This commit is contained in:
Pablo Hoffman 2009-08-28 19:38:04 -03:00
parent 046e63b1cc
commit 566758eeb7
1 changed files with 0 additions and 5 deletions

View File

@ -21,8 +21,6 @@ class Command(ScrapyCommand):
ScrapyCommand.add_options(self, parser)
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("-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", \
@ -33,9 +31,6 @@ class Command(ScrapyCommand):
if opts.nopipeline:
settings.overrides['ITEM_PIPELINES'] = []
if opts.restrict:
settings.overrides['RESTRICT_TO_URLS'] = args
if opts.nofollow:
settings.overrides['CRAWLSPIDER_FOLLOW_LINKS'] = False