Bugfix in parse command. Some options were not being processed

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40535
This commit is contained in:
elpolilla 2008-12-18 16:49:09 +00:00
parent cf8b5fae37
commit a98ba31816
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class Command(ScrapyCommand):
parser.add_option("-c", "--callbacks", dest="callbacks", action="store", help="use the provided callback(s) for parsing the url (separated with commas)")
def process_options(self, args, opts):
super(Command, self).process_options(args, opts)
self.callbacks = opts.callbacks.split(',') if opts.callbacks else []
def pipeline_process(self, item, spider, opts):