Fixed: Plugin generators should display help if no parameter is given (#4609).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3514 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-02-28 12:15:47 +00:00
parent 9a85d4d063
commit da84474391
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ class RedminePluginControllerGenerator < ControllerGenerator
def initialize(runtime_args, runtime_options = {})
runtime_args = runtime_args.dup
usage if runtime_args.empty?
@plugin_name = "redmine_" + runtime_args.shift.underscore
@plugin_pretty_name = plugin_name.titleize
@plugin_path = "vendor/plugins/#{plugin_name}"

View File

@ -6,6 +6,7 @@ class RedminePluginModelGenerator < ModelGenerator
def initialize(runtime_args, runtime_options = {})
runtime_args = runtime_args.dup
usage if runtime_args.empty?
@plugin_name = "redmine_" + runtime_args.shift.underscore
@plugin_pretty_name = plugin_name.titleize
@plugin_path = "vendor/plugins/#{plugin_name}"