brew deps: add hidden option -n

-n means 'natural order' instead of alpha-order, and will show
the order in which the deps will be installed.
This commit is contained in:
Adam Vandenberg 2011-04-13 13:10:25 -07:00
parent 8bb40e30e9
commit bfd75db803

View File

@ -8,7 +8,9 @@ module Homebrew extend self
puts "#{f.name}:#{f.deps*' '}"
end
else
puts ARGV.formulae.map{ |f| ARGV.one? ? f.deps : f.recursive_deps }.intersection.sort
all_deps = ARGV.formulae.map{ |f| ARGV.one? ? f.deps : f.recursive_deps }.intersection
all_deps.sort! unless ARGV.include? "-n"
puts all_deps
end
end
end