Scrapy, a fast high-level web crawling & scraping framework for Python.
improved command line tool usage help which explains that more commands are available when run from project directory. refs #107
Pablo Hoffman1e521a3ff30f
diff --git a/scrapy/cmdline.py b/scrapy/cmdline.pyindex 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 " [ more ] More commands available when run from project directory"print 'Use "scrapy <command> -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" % cmdnameprint 'Use "scrapy" to see available commands'- if not inproject:- print "More commands are available in project mode"def _run_print_help(parser, func, *a, **kw):try: