Merge pull request #14930 from g0t4/cat_mention_brew_info_github

include `--cask` or `--formula` in `brew info --github` suggestion
This commit is contained in:
Mike McQuaid 2023-03-09 09:00:22 +00:00 committed by GitHub
commit 4db1cbbfe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,9 @@ module Homebrew
if Homebrew.failed?
$stderr.puts "The name may be wrong, or the tap hasn't been tapped. Instead try:"
$stderr.puts " brew info --github #{args.named.join(" ")}"
treat_as = "--cask " if args.cask?
treat_as = "--formula " if args.formula?
$stderr.puts " brew info --github #{treat_as}#{args.named.join(" ")}"
return
end