提交 04eb5b6e 编写于 作者: J José Valim

Use Rails default banner.

上级 07449008
......@@ -26,6 +26,14 @@ def self.source_root
end
end
protected
# Use Rails default banner.
#
def self.banner
"#{$0} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]"
end
# Small macro to ruby as an option to the generator with proper default
# value plus an instance helper method.
#
......
......@@ -7,7 +7,7 @@ module Rails::Generators
class App < Base
DATABASES = %w( mysql oracle postgresql sqlite2 sqlite3 frontbase ibm_db )
namespace :rails
namespace "rails:app"
add_shebang_option!
argument :app_path, :type => :string
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册