Scrapy, a fast high-level web crawling & scraping framework for Python.
Made command-line too output more concise
Pablo Hoffman0da613213619
diff --git a/docs/topics/commands.rst b/docs/topics/commands.rstindex f8dc7738c..82c0b4bb8 100644--- a/docs/topics/commands.rst+++ b/docs/topics/commands.rst@@ -19,18 +19,12 @@ some usage help and the available commands::Scrapy X.Y - no active project- Usage- =====-- To run a command:+ Usage:scrapy <command> [options] [args]- To get help:- scrapy <command> -h-- Available commands- ==================-+ Available commands:+ crawl Start crawling a spider or URL+ fetch Fetch a URL using the Scrapy downloader[...]The first line will print the currently active project, if you're inside a@@ -39,8 +33,8 @@ a project it would have printed something like this::Scrapy X.Y - project: myproject- Usage- =====+ Usage:+ scrapy <command> [options] [args][...]diff --git a/scrapy/cmdline.py b/scrapy/cmdline.pyindex 0f94785b2..9ec7e6ab0 100644--- a/scrapy/cmdline.py+++ b/scrapy/cmdline.py@@ -48,20 +48,15 @@ def _print_usage(inside_project):settings['BOT_NAME'])else:print "Scrapy %s - no active project\n" % scrapy.__version__- print "Usage"- print "=====\n"- print "To run a command:"+ print "Usage:"print " scrapy <command> [options] [args]\n"- print "To get help:"- print " scrapy <command> -h\n"- print "Available commands"- print "==================\n"+ print "Available commands:"cmds = _get_commands_dict()for cmdname, cmdclass in sorted(cmds.iteritems()):if inside_project or not cmdclass.requires_project:- print "%s %s" % (cmdname, cmdclass.syntax())- print " %s" % cmdclass.short_desc()+ print " %-13s %s" % (cmdname, cmdclass.short_desc())+ print 'Use "scrapy <command> -h" for more info about a command'def check_deprecated_scrapy_ctl(argv):"""Check if Scrapy was called using the deprecated scrapy-ctl command and