From 0523f66bec11345fc31cc678a9bdc80607fdf3f9 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 15 Jun 2011 09:02:18 -0700 Subject: deps: document -n switch --- Library/Contributions/manpages/brew.1.md | 4 +++- Library/Homebrew/cmd/deps.rb | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index 511bd2745..5272f62ef 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -70,12 +70,14 @@ For the full command list, see the COMMANDS section. If `--no-fetch` is passed, Homebrew will not download to the cache and will thus not add the MD5 to the formula for you. - * `deps [--1]` : + * `deps [--1] [-n]` : Show 's dependencies. If `--1` is passed, only show dependencies one level down, instead of recursing. + If `-n` is passed, shows dependencies in topological order. + * `doctor`: Check your system for potential problems. diff --git a/Library/Homebrew/cmd/deps.rb b/Library/Homebrew/cmd/deps.rb index dfacbd1be..eed04ae0f 100644 --- a/Library/Homebrew/cmd/deps.rb +++ b/Library/Homebrew/cmd/deps.rb @@ -4,8 +4,7 @@ module Homebrew extend self def deps if ARGV.include? '--all' Formula.each do |f| - # TODO add a space after the colon?? - puts "#{f.name}:#{f.deps*' '}" + puts "#{f.name}: #{f.deps*' '}" end else all_deps = ARGV.formulae.map{ |f| ARGV.one? ? f.deps : f.recursive_deps }.intersection -- cgit v1.2.3