Include cask in brew reinstall help text.

This commit is contained in:
Markus Reiter 2020-09-28 01:33:29 +02:00
parent 67519d487a
commit d443d9ab75
3 changed files with 9 additions and 9 deletions

View File

@ -18,10 +18,10 @@ module Homebrew
def reinstall_args def reinstall_args
Homebrew::CLI::Parser.new do Homebrew::CLI::Parser.new do
usage_banner <<~EOS usage_banner <<~EOS
`reinstall` [<options>] <formula> `reinstall` [<options>] <formula>|<cask>
Uninstall and then install <formula> using the same options it was originally Uninstall and then reinstall a <formula> or <cask> using the same options it was
installed with, plus any appended brew formula options. originally installed with, plus any appended options specific to a <formula>.
Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will then be run for the Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will then be run for the
reinstalled formulae or, every 30 days, for all formulae. reinstalled formulae or, every 30 days, for all formulae.
@ -50,7 +50,7 @@ module Homebrew
description: "Print install times for each formula at the end of the run." description: "Print install times for each formula at the end of the run."
conflicts "--build-from-source", "--force-bottle" conflicts "--build-from-source", "--force-bottle"
formula_options formula_options
min_named :formula min_named 1
end end
end end

View File

@ -524,10 +524,10 @@ all items or checking if any current formulae/casks have Ruby issues.
* `--syntax`: * `--syntax`:
Syntax-check all of Homebrew's Ruby files (if no `*`tap`*` is passed). Syntax-check all of Homebrew's Ruby files (if no `*`tap`*` is passed).
### `reinstall` [*`options`*] *`formula`* ### `reinstall` [*`options`*] *`formula`*|*`cask`*
Uninstall and then install *`formula`* using the same options it was originally Uninstall and then reinstall a *`formula`* or *`cask`* using the same options it was
installed with, plus any appended brew formula options. originally installed with, plus any appended options specific to a *`formula`*.
Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will then be run for the Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will then be run for the
reinstalled formulae or, every 30 days, for all formulae. reinstalled formulae or, every 30 days, for all formulae.

View File

@ -779,8 +779,8 @@ Verify any alias symlinks in each tap\.
\fB\-\-syntax\fR \fB\-\-syntax\fR
Syntax\-check all of Homebrew\'s Ruby files (if no \fB<tap>\fR is passed)\. Syntax\-check all of Homebrew\'s Ruby files (if no \fB<tap>\fR is passed)\.
. .
.SS "\fBreinstall\fR [\fIoptions\fR] \fIformula\fR" .SS "\fBreinstall\fR [\fIoptions\fR] \fIformula\fR|\fIcask\fR"
Uninstall and then install \fIformula\fR using the same options it was originally installed with, plus any appended brew formula options\. Uninstall and then reinstall a \fIformula\fR or \fIcask\fR using the same options it was originally installed with, plus any appended options specific to a \fIformula\fR\.
. .
.P .P
Unless \fBHOMEBREW_NO_INSTALL_CLEANUP\fR is set, \fBbrew cleanup\fR will then be run for the reinstalled formulae or, every 30 days, for all formulae\. Unless \fBHOMEBREW_NO_INSTALL_CLEANUP\fR is set, \fBbrew cleanup\fR will then be run for the reinstalled formulae or, every 30 days, for all formulae\.