class Gem::Commands::GenerateIndexCommand

def self.new

remove_method(:initialize) warns, but removing new does not warn
def self.new
  command = allocate
  command.send(:initialize, "generate_index", "Generates the index files for a gem server directory (requires rubygems-generate_index)")
  command
end