diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-08-22 15:05:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-22 15:05:56 -0500 |
commit | 9963c2a0082488ce3f426a75fae8ab9efabf1a9a (patch) | |
tree | a7aece402a7e211922a0dc1cc29133328615e212 /railties | |
parent | 541b78a71fb1dbd926916177168a327bee239c4a (diff) | |
parent | 7bd29b506c4fe3e7b1022fa45dc31a6dd52b2674 (diff) | |
download | rails-9963c2a0082488ce3f426a75fae8ab9efabf1a9a.tar.gz rails-9963c2a0082488ce3f426a75fae8ab9efabf1a9a.tar.bz2 rails-9963c2a0082488ce3f426a75fae8ab9efabf1a9a.zip |
Merge pull request #33697 from bogdanvlviv/rails-command-help-show-description
Fix `rails initializers --help` and `rails dev:cache --help`
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/commands/dev/dev_command.rb | 5 | ||||
-rw-r--r-- | railties/lib/rails/commands/initializers/initializers_command.rb | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/dev/dev_command.rb b/railties/lib/rails/commands/dev/dev_command.rb index 820dc4db9e..a3f02f3172 100644 --- a/railties/lib/rails/commands/dev/dev_command.rb +++ b/railties/lib/rails/commands/dev/dev_command.rb @@ -5,7 +5,10 @@ require "rails/dev_caching" module Rails module Command class DevCommand < Base # :nodoc: - desc "Toggle development mode caching on/off" + def help + say "rails dev:cache # Toggle development mode caching on/off." + end + def cache Rails::DevCaching.enable_by_file end diff --git a/railties/lib/rails/commands/initializers/initializers_command.rb b/railties/lib/rails/commands/initializers/initializers_command.rb index 559546acea..33596177af 100644 --- a/railties/lib/rails/commands/initializers/initializers_command.rb +++ b/railties/lib/rails/commands/initializers/initializers_command.rb @@ -3,7 +3,7 @@ module Rails module Command class InitializersCommand < Base # :nodoc: - desc "Print out all defined initializers in the order they are invoked by Rails." + desc "initializers", "Print out all defined initializers in the order they are invoked by Rails." def perform require_application_and_environment! |