diff options
| author | Matt Torok | 2013-03-05 18:02:22 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-03-05 19:43:12 -0800 |
| commit | 8488301b374b309d0bb97481e7f50a041c54640b (patch) | |
| tree | 34fcb79795a8735dec8b040b0b59b2f234e54935 /Library/Homebrew | |
| parent | a14e1f21053711ac73692a6d27e8b952fa9febd4 (diff) | |
| download | homebrew-8488301b374b309d0bb97481e7f50a041c54640b.tar.bz2 | |
Added '--installed' option to `deps` command.
When deps command is passed this option, it will only show the dependencies
for the installed forumas. This option overrides the '--all' option.
Closes #18276.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/deps.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
