lib/hansel/hansel.rb
def output
      opts = options
      if opts.format
        FileUtils.mkdir_p opts.output_dir
        formatted_output
      end
      @results.clear
    end
def output
      opts = options
      if opts.format
        FileUtils.mkdir_p opts.output_dir
        formatted_output
      end
      @results.clear
    end
Output the results based on the requested output format