parent
53c2532c26
commit
85c93ad22c
@ -141,11 +141,9 @@ Note that these flags should only appear after a command.
|
|||||||
* `home` <formula>:
|
* `home` <formula>:
|
||||||
Open <formula>'s homepage in a browser.
|
Open <formula>'s homepage in a browser.
|
||||||
|
|
||||||
* `info [--all]` <formula>:
|
* `info <formula>:
|
||||||
Display information about <formula>.
|
Display information about <formula>.
|
||||||
|
|
||||||
If `--all` is passed, show info for all formulae.
|
|
||||||
|
|
||||||
* `info --github` <formula>:
|
* `info --github` <formula>:
|
||||||
Open a browser to the GitHub History page for formula <formula>.
|
Open a browser to the GitHub History page for formula <formula>.
|
||||||
|
|
||||||
|
@ -20,12 +20,7 @@ module Homebrew extend self
|
|||||||
|
|
||||||
def print_info
|
def print_info
|
||||||
if ARGV.named.empty?
|
if ARGV.named.empty?
|
||||||
if ARGV.include? "--all"
|
if HOMEBREW_CELLAR.exist?
|
||||||
Formula.each do |f|
|
|
||||||
info_formula f
|
|
||||||
puts '---'
|
|
||||||
end
|
|
||||||
elsif HOMEBREW_CELLAR.exist?
|
|
||||||
puts "#{HOMEBREW_CELLAR.children.length} kegs, #{HOMEBREW_CELLAR.abv}"
|
puts "#{HOMEBREW_CELLAR.children.length} kegs, #{HOMEBREW_CELLAR.abv}"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
@ -159,12 +159,9 @@ Open Homebrew\'s own homepage in a browser\.
|
|||||||
Open \fIformula\fR\'s homepage in a browser\.
|
Open \fIformula\fR\'s homepage in a browser\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBinfo [\-\-all]\fR \fIformula\fR
|
`info \fIformula\fR
|
||||||
Display information about \fIformula\fR\.
|
Display information about \fIformula\fR\.
|
||||||
.
|
.
|
||||||
.IP
|
|
||||||
If \fB\-\-all\fR is passed, show info for all formulae\.
|
|
||||||
.
|
|
||||||
.TP
|
.TP
|
||||||
\fBinfo \-\-github\fR \fIformula\fR
|
\fBinfo \-\-github\fR \fIformula\fR
|
||||||
Open a browser to the GitHub History page for formula \fIformula\fR\.
|
Open a browser to the GitHub History page for formula \fIformula\fR\.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user