aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin/destroy
diff options
context:
space:
mode:
Diffstat (limited to 'railties/bin/destroy')
-rw-r--r--railties/bin/destroy2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/bin/destroy b/railties/bin/destroy
index ba6dc7703f..f9d9d181a4 100644
--- a/railties/bin/destroy
+++ b/railties/bin/destroy
@@ -2,4 +2,6 @@
require File.dirname(__FILE__) + '/../config/environment'
require 'rails_generator'
require 'rails_generator/scripts/destroy'
+
+ARGV.shift if ['--help', '-h'].include?(ARGV[0])
Rails::Generator::Scripts::Destroy.new.run(ARGV)