Permalink
Browse files

Added support for a -h/--help parameter in the generator #331 [Ulysses]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 01f0555 commit d19b1810db071ac9b4f8e8eb954ea539b0295df9 @dhh dhh committed Dec 19, 2004
Showing with 4 additions and 0 deletions.
  1. +2 −0 railties/CHANGELOG
  2. +2 −0 railties/bin/generate
View
@@ -1,5 +1,7 @@
*SVN*
+* Added support for a -h/--help parameter in the generator #331 [Ulysses]
+
* File.expand_path in config/environment.rb would fail when dealing with symlinked public directories [mjobin].
View
@@ -2,6 +2,8 @@
require File.dirname(__FILE__) + '/../config/environment'
require 'rails_generator'
+ARGV.shift unless ARGV.empty? or not ['--help', '-h'].include?(ARGV[0])
+
unless ARGV.empty?
begin
name = ARGV.shift

0 comments on commit d19b181

Please sign in to comment.