aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-06 11:42:17 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-06 11:42:17 +0000
commitdb41d2dd5c738ca44a07330cf02e9d817fedc34c (patch)
tree9715f9041c169e56ec2124e5e7cee93c78ef06b6 /railties/bin
parent5da277b182604cef0ea68f79462568cb52af6706 (diff)
downloadrails-db41d2dd5c738ca44a07330cf02e9d817fedc34c.tar.gz
rails-db41d2dd5c738ca44a07330cf02e9d817fedc34c.tar.bz2
rails-db41d2dd5c738ca44a07330cf02e9d817fedc34c.zip
Fixed -h/--help for generate and destroy generators #331
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@832 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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)