Merge pull request #18341 from Homebrew/add-warning-silence-suggestions

cli/named_args: update `package_conflicts_message`
This commit is contained in:
Mike McQuaid 2024-09-16 17:40:07 +01:00 committed by GitHub
commit 547677c810
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -492,13 +492,13 @@ module Homebrew
if package.is_a?(Formula) && (tap = package.tap)
message += "use #{tap.name}/#{package.name} or "
end
message += "specify the `--formula` flag."
message += "specify the `--formula` flag. To silence this message, use the `--cask` flag."
when Cask::Cask
message += " For the cask, "
if (tap = package.tap)
message += "use #{tap.name}/#{package.token} or "
end
message += "specify the `--cask` flag."
message += "specify the `--cask` flag. To silence this message, use the `--formula` flag."
end
message.freeze
end