new (Gem::Commands::GenerateIndexCommand)

    # File lib/rubygems/commands/generate_index_command.rb, line 6
      def initialize
        super 'generate_index',
              'Generates the index files for a gem server directory',
              :directory => '.'

        add_option '-d', '--directory=DIRNAME',
                   'repository base dir containing gems subdir' do |dir, options|
          options[:directory] = File.expand_path dir
        end
      end