Improve help for Rake tasks by p8 · Pull Request #41442 · rails/rails · GitHub
source link: https://github.com/rails/rails/pull/41442
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
When running bin/rails -h
the following messages is shown:
All commands can be run with -h (or --help) for more information.
This doesn't apply to the commands that are Rake tasks like db:migrate.
If you run bin/rails db:migrate -h
you'll get the Rake help, which
can be confusing...
Instead, if we replace the -h
argument with --describe db:migrate
Rails outputs the Rake task descriptions, which are a lot more helpful:
rails db:migrate
Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog).
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK