class Cucumber::Cli::Configuration

def formatters(step_mother)

def formatters(step_mother)
  # TODO: We should remove the autoformat functionality. That
  # can be done with the gherkin CLI.
  if @options[:autoformat]
    require 'cucumber/formatter/pretty'
    return [Formatter::Pretty.new(step_mother, nil, @options)]
  end
  @options[:formats].map do |format_and_out|
    format = format_and_out[0]
    path_or_io = format_and_out[1]
    begin
      formatter_class = formatter_class(format)
      formatter_class.new(step_mother, path_or_io, @options)
    rescue Exception => e
      e.message << "\nError creating formatter: #{format}"
      raise e
    end
  end
end