class Cask::CLI::Checklinks
  def self.run(*args)
    casks_to_check = args.empty? ? Cask.all : args.map { |arg| Cask.load(arg) }
    casks_to_check.each do |cask|
      checker = Cask::LinkChecker.new(cask)
      checker.run
      puts checker.summary
    end
  end

  def self.help
    "checks for bad cask links"
  end
end
