Include cask in brew install help text.

This commit is contained in:
Markus Reiter 2020-09-28 01:31:47 +02:00
parent 2ee30b8067
commit 67519d487a
3 changed files with 13 additions and 11 deletions

View File

@ -109,12 +109,13 @@ module Homebrew
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`install` [<options>] <formula>
`install` [<options>] <formula>|<cask>
Install <formula>. Additional options specific to <formula> may be appended to the command.
Install a <formula> or <cask>. Additional options specific to a <formula> may be
appended to the command.
Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will then be run for the
installed formulae or, every 30 days, for all formulae.
Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will then be run for
the installed formulae or, every 30 days, for all formulae.
EOS
switch "-d", "--debug",
description: "If brewing fails, open an interactive debugging session with access to IRB "\
@ -139,7 +140,7 @@ module Homebrew
end
formula_options
min_named :formula
min_named 1
end
end

View File

@ -304,12 +304,13 @@ If *`formula`* is provided, show summary of information about *`formula`*.
* `-v`, `--verbose`:
Show more verbose analytics data for *`formula`*.
### `install` [*`options`*] *`formula`*
### `install` [*`options`*] *`formula`*|*`cask`*
Install *`formula`*. Additional options specific to *`formula`* may be appended to the command.
Install a *`formula`* or *`cask`*. Additional options specific to a *`formula`* may be
appended to the command.
Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will then be run for the
installed formulae or, every 30 days, for all formulae.
Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will then be run for
the installed formulae or, every 30 days, for all formulae.
* `-d`, `--debug`:
If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory.

View File

@ -445,8 +445,8 @@ Print JSON of all available formulae\.
\fB\-v\fR, \fB\-\-verbose\fR
Show more verbose analytics data for \fIformula\fR\.
.
.SS "\fBinstall\fR [\fIoptions\fR] \fIformula\fR"
Install \fIformula\fR\. Additional options specific to \fIformula\fR may be appended to the command\.
.SS "\fBinstall\fR [\fIoptions\fR] \fIformula\fR|\fIcask\fR"
Install a \fIformula\fR or \fIcask\fR\. Additional options specific to a \fIformula\fR may be appended to the command\.
.
.P
Unless \fBHOMEBREW_NO_INSTALL_CLEANUP\fR is set, \fBbrew cleanup\fR will then be run for the installed formulae or, every 30 days, for all formulae\.