Add documentation to `scrapy shell` command.

The special syntax required for local files (`./file.html`) is not documented as part of the `scrapy shell --help` output. This patch adds that.
This commit is contained in:
Frederik Elwert 2018-11-16 22:15:03 +01:00 committed by GitHub
parent dc65e7527d
commit 127bf499f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ class Command(ScrapyCommand):
return "Interactive scraping console"
def long_desc(self):
return "Interactive console for scraping the given url"
return ("Interactive console for scraping the given url or file. "
"Use ./file.html syntax or full path for local file.")
def add_options(self, parser):
ScrapyCommand.add_options(self, parser)