Remove "brew info <URL>"

Closes Homebrew/homebrew#27076.
This commit is contained in:
Jack Nagel 2014-02-28 11:06:41 -06:00
parent 479f4bc7cd
commit d0f43ad367
3 changed files with 0 additions and 16 deletions

View File

@ -148,9 +148,6 @@ Note that these flags should only appear after a command.
To view formula history locally: `brew log -p <formula>`. To view formula history locally: `brew log -p <formula>`.
* `info` <URL>:
Print the name and version that will be detected for <URL>.
* `install [--debug] [--env=<std|super>] [--ignore-dependencies] [--only-dependencies] [--fresh] [--cc=<compiler>] [--build-from-source] [--devel|--HEAD]` <formula>: * `install [--debug] [--env=<std|super>] [--ignore-dependencies] [--only-dependencies] [--fresh] [--cc=<compiler>] [--build-from-source] [--devel|--HEAD]` <formula>:
Install <formula>. Install <formula>.

View File

@ -28,8 +28,6 @@ module Homebrew extend self
elsif HOMEBREW_CELLAR.exist? elsif HOMEBREW_CELLAR.exist?
puts "#{HOMEBREW_CELLAR.children.length} kegs, #{HOMEBREW_CELLAR.abv}" puts "#{HOMEBREW_CELLAR.children.length} kegs, #{HOMEBREW_CELLAR.abv}"
end end
elsif valid_url ARGV[0]
info_formula Formula.factory(ARGV.shift)
else else
ARGV.named.each do |f| ARGV.named.each do |f|
begin begin
@ -158,11 +156,4 @@ module Homebrew extend self
end end
deps_status * ", " deps_status * ", "
end end
private
def valid_url u
u[0..6] == 'http://' or u[0..7] == 'https://' or u[0..5] == 'ftp://'
end
end end

View File

@ -170,10 +170,6 @@ Open a browser to the GitHub History page for formula \fIformula\fR\.
To view formula history locally: \fBbrew log \-p <formula>\fR\. To view formula history locally: \fBbrew log \-p <formula>\fR\.
. .
.TP .TP
\fBinfo\fR \fIURL\fR
Print the name and version that will be detected for \fIURL\fR\.
.
.TP
\fBinstall [\-\-debug] [\-\-env=<std|super>] [\-\-ignore\-dependencies] [\-\-only\-dependencies] [\-\-fresh] [\-\-cc=<compiler>] [\-\-build\-from\-source] [\-\-devel|\-\-HEAD]\fR \fIformula\fR \fBinstall [\-\-debug] [\-\-env=<std|super>] [\-\-ignore\-dependencies] [\-\-only\-dependencies] [\-\-fresh] [\-\-cc=<compiler>] [\-\-build\-from\-source] [\-\-devel|\-\-HEAD]\fR \fIformula\fR
Install \fIformula\fR\. Install \fIformula\fR\.
. .