diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-06 11:42:17 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-06 11:42:17 +0000 |
commit | db41d2dd5c738ca44a07330cf02e9d817fedc34c (patch) | |
tree | 9715f9041c169e56ec2124e5e7cee93c78ef06b6 /railties/bin/generate | |
parent | 5da277b182604cef0ea68f79462568cb52af6706 (diff) | |
download | rails-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/generate')
-rwxr-xr-x | railties/bin/generate | 2 |
1 files changed, 2 insertions, 0 deletions
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) |