Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit d19b1810db071ac9b4f8e8eb954ea539b0295df9 1 parent 01f0555
David Heinemeier Hansson dhh authored
Showing with 4 additions and 0 deletions.
  1. +2 −0  railties/CHANGELOG
  2. +2 −0  railties/bin/generate
2  railties/CHANGELOG
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].
2  railties/bin/generate
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
Please sign in to comment.
Something went wrong with that request. Please try again.