Skip to content

Commit

Permalink
Merge pull request #18341 from Homebrew/add-warning-silence-suggestions
Browse files Browse the repository at this point in the history
cli/named_args: update `package_conflicts_message`
  • Loading branch information
MikeMcQuaid authored Sep 16, 2024
2 parents 8f5c745 + 2101411 commit 547677c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/cli/named_args.rb
Original file line number Diff line number Diff line change
Expand Up @@ -492,13 +492,13 @@ def package_conflicts_message(ref, loaded_type, package)
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
Expand Down

0 comments on commit 547677c

Please sign in to comment.