def options!
      @options = {}
      @option_parser = OptionParser.new(BANNER) do |opts|
        opts.on("-b", "--batch_length BATCH", "Number of urls to purge at once") do |b|
          @options[:batch_length] = b.to_i
        end
        opts.on("-t", "--sleep_time SLEEP", "Time to wait in between batches") do |t|
          @options[:sleep_time] = t.to_i
        end
        opts.on("-e", "--stdin", "Use stdin for urls") do
          @urls = []
          ARGF.each_line do |url|
            @urls << url.chomp
          end
        end
        opts.on("-s", "--server SERVER", "Varnish url, e.g. 127.0.0.1:6082") do |s|
          @options[:server] = s
        end
        opts.on("-o", "--log_file LOG_PATH", "Log file to output to (default: Standard Out") do |o|
          @options[:log_file] = o
        end
        opts.on("-n", "--no-kill", "Don't kill the running purgers if they exist") do |n|
          @options[:no_kill] = n
        end
        opts.on_tail("-h", "--help", "Display this help message") do
          puts opts.help
          exit
        end
      end

      begin
        @option_parser.parse!(ARGV)
      rescue OptionParser::InvalidOption => e
        puts e.message
        exit(1)
      end
    end
def options!
      @options = {}
      @option_parser = OptionParser.new(BANNER) do |opts|
        opts.on("-b", "--batch_length BATCH", "Number of urls to purge at once") do |b|
          @options[:batch_length] = b.to_i
        end
        opts.on("-t", "--sleep_time SLEEP", "Time to wait in between batches") do |t|
          @options[:sleep_time] = t.to_i
        end
        opts.on("-e", "--stdin", "Use stdin for urls") do
          @urls = []
          ARGF.each_line do |url|
            @urls << url.chomp
          end
        end
        opts.on("-s", "--server SERVER", "Varnish url, e.g. 127.0.0.1:6082") do |s|
          @options[:server] = s
        end
        opts.on("-o", "--log_file LOG_PATH", "Log file to output to (default: Standard Out") do |o|
          @options[:log_file] = o
        end
        opts.on("-n", "--no-kill", "Don't kill the running purgers if they exist") do |n|
          @options[:no_kill] = n
        end
        opts.on_tail("-h", "--help", "Display this help message") do
          puts opts.help
          exit
        end
      end

      begin
        @option_parser.parse!(ARGV)
      rescue OptionParser::InvalidOption => e
        puts e.message
        exit(1)
      end
    end
Parse the command line options using OptionParser.