Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrapy -h outputs a stray "commands" #5709

Closed
wRAR opened this issue Nov 9, 2022 · 0 comments · Fixed by #5712
Closed

scrapy -h outputs a stray "commands" #5709

wRAR opened this issue Nov 9, 2022 · 0 comments · Fixed by #5712

Comments

@wRAR
Copy link
Member

wRAR commented Nov 9, 2022

When I run scrapy -h in a project on all Scrapy versions starting with 2.1, I get:

[...]
Available commands:
  bench         Run quick benchmark test
  check         Check spider contracts
  **commands**      
  crawl         Run a spider
  edit          Edit spider
  fetch         Fetch a URL using the Scrapy downloader
[...]

The stray line is not present on older versions. I haven't found its source but it should be easy I think. The list of commands is collected in scrapy.cmdline._get_commands_dict() and printed by scrapy.cmdline._print_commands().

Jtwoolbright added a commit to Jtwoolbright/scrapy that referenced this issue Nov 9, 2022
@wRAR wRAR linked a pull request Nov 10, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant