1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
David Heinemeier Hansson 2004-12-19 12:55:22 +00:00
parent 01f05551c0
commit d19b1810db
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,7 @@
*SVN* *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]. * File.expand_path in config/environment.rb would fail when dealing with symlinked public directories [mjobin].

View file

@ -2,6 +2,8 @@
require File.dirname(__FILE__) + '/../config/environment' require File.dirname(__FILE__) + '/../config/environment'
require 'rails_generator' require 'rails_generator'
ARGV.shift unless ARGV.empty? or not ['--help', '-h'].include?(ARGV[0])
unless ARGV.empty? unless ARGV.empty?
begin begin
name = ARGV.shift name = ARGV.shift