deps: document -n switch
This commit is contained in:
parent
a656243377
commit
0523f66bec
@ -70,12 +70,14 @@ For the full command list, see the COMMANDS section.
|
|||||||
If `--no-fetch` is passed, Homebrew will not download <URL> to the cache and
|
If `--no-fetch` is passed, Homebrew will not download <URL> to the cache and
|
||||||
will thus not add the MD5 to the formula for you.
|
will thus not add the MD5 to the formula for you.
|
||||||
|
|
||||||
* `deps [--1]` <formula>:
|
* `deps [--1] [-n]` <formula>:
|
||||||
Show <formula>'s dependencies.
|
Show <formula>'s dependencies.
|
||||||
|
|
||||||
If `--1` is passed, only show dependencies one level down, instead of
|
If `--1` is passed, only show dependencies one level down, instead of
|
||||||
recursing.
|
recursing.
|
||||||
|
|
||||||
|
If `-n` is passed, shows dependencies in topological order.
|
||||||
|
|
||||||
* `doctor`:
|
* `doctor`:
|
||||||
Check your system for potential problems.
|
Check your system for potential problems.
|
||||||
|
|
||||||
|
@ -4,8 +4,7 @@ module Homebrew extend self
|
|||||||
def deps
|
def deps
|
||||||
if ARGV.include? '--all'
|
if ARGV.include? '--all'
|
||||||
Formula.each do |f|
|
Formula.each do |f|
|
||||||
# TODO add a space after the colon??
|
puts "#{f.name}: #{f.deps*' '}"
|
||||||
puts "#{f.name}:#{f.deps*' '}"
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
all_deps = ARGV.formulae.map{ |f| ARGV.one? ? f.deps : f.recursive_deps }.intersection
|
all_deps = ARGV.formulae.map{ |f| ARGV.one? ? f.deps : f.recursive_deps }.intersection
|
||||||
|
@ -78,12 +78,15 @@ Generate a formula for the downloadable file at \fIURL\fR and opens it in $EDITO
|
|||||||
If \fB\-\-no\-fetch\fR is passed, Homebrew will not download \fIURL\fR to the cache and will thus not add the MD5 to the formula for you\.
|
If \fB\-\-no\-fetch\fR is passed, Homebrew will not download \fIURL\fR to the cache and will thus not add the MD5 to the formula for you\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBdeps [\-\-1]\fR \fIformula\fR
|
\fBdeps [\-\-1] [\-n]\fR \fIformula\fR
|
||||||
Show \fIformula\fR\'s dependencies\.
|
Show \fIformula\fR\'s dependencies\.
|
||||||
.
|
.
|
||||||
.IP
|
.IP
|
||||||
If \fB\-\-1\fR is passed, only show dependencies one level down, instead of recursing\.
|
If \fB\-\-1\fR is passed, only show dependencies one level down, instead of recursing\.
|
||||||
.
|
.
|
||||||
|
.IP
|
||||||
|
If \fB\-n\fR is passed, shows dependencies in topological order\.
|
||||||
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBdoctor\fR
|
\fBdoctor\fR
|
||||||
Check your system for potential problems\.
|
Check your system for potential problems\.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user