mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cli/named_args: don't warn about old tokens overlapping.
This avoids e.g. ``` Warning: Treating angband as a formula. For the cask, use homebrew/cask/angband-app or specify the `--cask` flag. To silence this message, use the `--formula` flag. ``` when running `brew install angband`.
This commit is contained in:
parent
9fa50e5e12
commit
c36389165c
@ -571,6 +571,7 @@ module Homebrew
|
||||
end
|
||||
return unless available
|
||||
return if Context.current.quiet?
|
||||
return if cask&.old_tokens&.include?(ref)
|
||||
|
||||
opoo package_conflicts_message(ref, loaded_type, cask)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user