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:
commit
4db1cbbfe0
@ -54,7 +54,9 @@ module Homebrew
|
|||||||
|
|
||||||
if Homebrew.failed?
|
if Homebrew.failed?
|
||||||
$stderr.puts "The name may be wrong, or the tap hasn't been tapped. Instead try:"
|
$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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user