mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
displaying a warning if ask is used with casks
This commit is contained in:
parent
1416da262b
commit
96ca8d2e07
@ -218,6 +218,9 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
if casks.any?
|
if casks.any?
|
||||||
|
if args.options_only.include? "--ask"
|
||||||
|
opoo "Option --ask is not compatible with casks."
|
||||||
|
end
|
||||||
if args.dry_run?
|
if args.dry_run?
|
||||||
if (casks_to_install = casks.reject(&:installed?).presence)
|
if (casks_to_install = casks.reject(&:installed?).presence)
|
||||||
ohai "Would install #{::Utils.pluralize("cask", casks_to_install.count, include_count: true)}:"
|
ohai "Would install #{::Utils.pluralize("cask", casks_to_install.count, include_count: true)}:"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user