Permalink
Browse files

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
  • Loading branch information...
1 parent 5da277b commit db41d2dd5c738ca44a07330cf02e9d817fedc34c @dhh dhh committed Mar 6, 2005
Showing with 6 additions and 0 deletions.
  1. +2 −0 railties/CHANGELOG
  2. +2 −0 railties/bin/destroy
  3. +2 −0 railties/bin/generate
View
@@ -1,5 +1,7 @@
*SVN*
+* Fixed -h/--help for generate and destroy generators #331
+
* Added begin/rescue around the FCGI dispatcher so no uncaught exceptions can bubble up to kill the process (logs to log/fastcgi.crash.log)
* Fixed that association#count would produce invalid sql when called sequentialy #659 [kanis@comcard.de]
@@ -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)
@@ -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)

0 comments on commit db41d2d

Please sign in to comment.