diff options
Diffstat (limited to 'Library/Homebrew/cmd/missing.rb')
| -rw-r--r-- | Library/Homebrew/cmd/missing.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/missing.rb b/Library/Homebrew/cmd/missing.rb index 148fe5bef..8a1dc506d 100644 --- a/Library/Homebrew/cmd/missing.rb +++ b/Library/Homebrew/cmd/missing.rb @@ -1,6 +1,9 @@ -#: * `missing` [<formulae>]: +#: * `missing` [`--hide=`<hidden>] [<formulae>]: #: Check the given <formulae> for missing dependencies. If no <formulae> are #: given, check all installed brews. +#: +#: If `--hide=`<hidden> is passed, act as if none of <hidden> are installed. +#: <hidden> should be a comma-separated list of formulae. require "formula" require "tab" @@ -18,8 +21,11 @@ module Homebrew ARGV.resolved_formulae end - Diagnostic.missing_deps(ff) do |name, missing| - print "#{name}: " if ff.size > 1 + ff.each do |f| + missing = f.missing_dependencies(hide: ARGV.values("hide")) + next if missing.empty? + + print "#{f}: " if ff.size > 1 puts missing.join(" ") end end |
