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:
Mike McQuaid 2025-06-25 17:24:35 +01:00
parent 9fa50e5e12
commit c36389165c
No known key found for this signature in database

View File

@ -571,6 +571,7 @@ module Homebrew
end end
return unless available return unless available
return if Context.current.quiet? return if Context.current.quiet?
return if cask&.old_tokens&.include?(ref)
opoo package_conflicts_message(ref, loaded_type, cask) opoo package_conflicts_message(ref, loaded_type, cask)
end end