aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/destroy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/commands/destroy.rb')
-rw-r--r--railties/lib/rails/commands/destroy.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/destroy.rb b/railties/lib/rails/commands/destroy.rb
index 92a06ebdd8..9023c61bf2 100644
--- a/railties/lib/rails/commands/destroy.rb
+++ b/railties/lib/rails/commands/destroy.rb
@@ -1,7 +1,7 @@
require 'rails/generators'
-if ARGV.size == 0
- Rails::Generators.help
+if [nil, "-h", "--help"].include?(ARGV.first)
+ Rails::Generators.help 'destroy'
exit
end