aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin
diff options
context:
space:
mode:
Diffstat (limited to 'railties/bin')
-rw-r--r--railties/bin/destroy2
-rwxr-xr-xrailties/bin/generate2
2 files changed, 4 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)
diff --git a/railties/bin/generate b/railties/bin/generate
index dde69e61a1..43bcfd0cb1 100755
--- a/railties/bin/generate
+++ b/railties/bin/generate
@@ -2,4 +2,6 @@
require File.dirname(__FILE__) + '/../config/environment'
require 'rails_generator'
require 'rails_generator/scripts/generate'
+
+ARGV.shift if ['--help', '-h'].include?(ARGV[0])
Rails::Generator::Scripts::Generate.new.run(ARGV)