diff options
Diffstat (limited to 'railties/lib/rails/commands/help/help_command.rb')
-rw-r--r-- | railties/lib/rails/commands/help/help_command.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/help/help_command.rb b/railties/lib/rails/commands/help/help_command.rb new file mode 100644 index 0000000000..8e5b4d68d3 --- /dev/null +++ b/railties/lib/rails/commands/help/help_command.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Rails + module Command + class HelpCommand < Base # :nodoc: + hide_command! + + def help(*) + puts self.class.desc + + Rails::Command.print_commands + end + end + end +end |