# File lib/cheat.rb, line 17
  def sheets(args)
    args = args.dup

    return unless parse_args(args)

    FileUtils.mkdir(cache_dir) unless File.exists?(cache_dir) if cache_dir

    uri = "http://#{cheat_uri}/y/"

    if @offline
      return process(File.read(cache_file)) if File.exists?(cache_file) rescue clear_cache if cache_file
    else
      if %w[sheets all recent].include? @sheet
        uri = uri.sub('/y/', @sheet == 'recent' ? '/yr/' : '/ya/')
        return open(uri, headers) { |body| process(body.read) }
      end
      return process(File.read(cache_file)) if File.exists?(cache_file) rescue clear_cache if cache_file
      fetch_sheet(uri + @sheet) if @sheet
    end
  end