displaying a warning if ask is used with casks

This commit is contained in:
thibhero 2025-05-03 15:23:42 -04:00
parent 1416da262b
commit 96ca8d2e07

View File

@ -218,6 +218,9 @@ module Homebrew
end
if casks.any?
if args.options_only.include? "--ask"
opoo "Option --ask is not compatible with casks."
end
if args.dry_run?
if (casks_to_install = casks.reject(&:installed?).presence)
ohai "Would install #{::Utils.pluralize("cask", casks_to_install.count, include_count: true)}:"