diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Contributions/manpages/brew.1.md | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/deps.rb | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index ca45427ee..93df07341 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -78,7 +78,7 @@ Note that these flags should only appear after a command. The options `--set-name` and `--set-version` each take an argument and allow you to explicitly set the name and version of the package you are creating. - * `deps [--1] [-n] [--tree] [--all]` <formula>: + * `deps [--1] [-n] [--tree] [--all] [--installed]` <formula>: Show <formula>'s dependencies. If `--1` is passed, only show dependencies one level down, instead of diff --git a/Library/Homebrew/cmd/deps.rb b/Library/Homebrew/cmd/deps.rb index 7e426f91f..9e6d450f3 100644 --- a/Library/Homebrew/cmd/deps.rb +++ b/Library/Homebrew/cmd/deps.rb @@ -9,7 +9,11 @@ end module Homebrew extend self def deps - if ARGV.include? '--all' + if ARGV.include? '--installed' + Formula.installed.each do |f| + puts "#{f.name}: #{f.deps*' '}" + end + elsif ARGV.include? '--all' Formula.each do |f| puts "#{f.name}: #{f.deps*' '}" end |
