class Rails::Command::PluginCommand

def perform(type = nil, *plugin_args)

def perform(type = nil, *plugin_args)
  plugin_args << "--help" unless type == "new"
  unless options.key?("no_rc") # Thor's not so indifferent access hash.
    railsrc = File.expand_path(options[:rc])
    if File.exist?(railsrc)
      extra_args = File.read(railsrc).split(/\n+/).flat_map(&:split)
      say "Using #{extra_args.join(" ")} from #{railsrc}"
      plugin_args.insert(1, *extra_args)
    end
  end
  run_plugin_generator plugin_args
end