From 127bf499f1d6b4a924d87e39ff89b528586c78c7 Mon Sep 17 00:00:00 2001 From: Frederik Elwert Date: Fri, 16 Nov 2018 22:15:03 +0100 Subject: [PATCH] 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. --- scrapy/commands/shell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scrapy/commands/shell.py b/scrapy/commands/shell.py index 40a58d94a..e05084272 100644 --- a/scrapy/commands/shell.py +++ b/scrapy/commands/shell.py @@ -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)