From 1e521a3ff30fbe0a7031aea273f92ffce54bb4da Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Thu, 19 Apr 2012 02:54:57 -0300 Subject: [PATCH] improved command line tool usage help which explains that more commands are available when run from project directory. refs #107 --- scrapy/cmdline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrapy/cmdline.py b/scrapy/cmdline.py index 7b0923add..68bf68306 100644 --- a/scrapy/cmdline.py +++ b/scrapy/cmdline.py @@ -60,6 +60,9 @@ def _print_commands(inproject): cmds = _get_commands_dict(inproject) for cmdname, cmdclass in sorted(cmds.iteritems()): print " %-13s %s" % (cmdname, cmdclass.short_desc()) + if not inproject: + print + print " [ more ] More commands available when run from project directory" print print 'Use "scrapy -h" to see more info about a command' @@ -67,9 +70,6 @@ def _print_unknown_command(cmdname, inproject): _print_header(inproject) print "Unknown command: %s\n" % cmdname print 'Use "scrapy" to see available commands' - if not inproject: - print - print "More commands are available in project mode" def _run_print_help(parser, func, *a, **kw): try: