提交 d19b1810 编写于 作者: D David Heinemeier Hansson

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
上级 01f05551
*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,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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册