From 2101411c0abba687df1a43ea090950f7fcf3009c Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Tue, 17 Sep 2024 00:23:15 +0800 Subject: [PATCH] cli/named_args: update `package_conflicts_message` Let's also show users the right way to silence this message. Follow-up to #18330. --- Library/Homebrew/cli/named_args.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cli/named_args.rb b/Library/Homebrew/cli/named_args.rb index e313628224..7d46b75450 100644 --- a/Library/Homebrew/cli/named_args.rb +++ b/Library/Homebrew/cli/named_args.rb @@ -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