class Gem::Commands::UpdateCommand
def update_rubygems_arguments # :nodoc:
def update_rubygems_arguments # :nodoc: args = [] args << '--silent' if options[:silent] args << '--prefix' << Gem.prefix if Gem.prefix args << '--no-document' unless options[:document].include?('rdoc') || options[:document].include?('ri') args << '--no-format-executable' if options[:no_format_executable] args << '--previous-version' << Gem::VERSION if options[:system] == true or Gem::Version.new(options[:system]) >= Gem::Version.new(2) args end