    # File lib/rubygems/local_remote_options.rb, line 18
      def accept_uri_http
        OptionParser.accept URI::HTTP do |value|
          begin
            uri = URI.parse value
          rescue URI::InvalidURIError
            raise OptionParser::InvalidArgument, value
          end

          raise OptionParser::InvalidArgument, value unless uri.scheme == 'http'

          value
        end
      end