From d443d9ab75047bdbefa51ca2db6d7fcfe786f59d Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 28 Sep 2020 01:33:29 +0200 Subject: [PATCH] Include `cask` in `brew reinstall` help text. --- Library/Homebrew/cmd/reinstall.rb | 8 ++++---- docs/Manpage.md | 6 +++--- manpages/brew.1 | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index e19f67a5d6..fbafbccf57 100644 --- a/Library/Homebrew/cmd/reinstall.rb +++ b/Library/Homebrew/cmd/reinstall.rb @@ -18,10 +18,10 @@ module Homebrew def reinstall_args Homebrew::CLI::Parser.new do usage_banner <<~EOS - `reinstall` [] + `reinstall` [] | - Uninstall and then install using the same options it was originally - installed with, plus any appended brew formula options. + Uninstall and then reinstall a or using the same options it was + originally installed with, plus any appended options specific to a . Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will then be run for the 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." conflicts "--build-from-source", "--force-bottle" formula_options - min_named :formula + min_named 1 end end diff --git a/docs/Manpage.md b/docs/Manpage.md index 94d6df25b8..7018ba68a2 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -524,10 +524,10 @@ all items or checking if any current formulae/casks have Ruby issues. * `--syntax`: 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 -installed with, plus any appended brew formula options. +Uninstall and then reinstall a *`formula`* or *`cask`* using the same options it was +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 reinstalled formulae or, every 30 days, for all formulae. diff --git a/manpages/brew.1 b/manpages/brew.1 index 4ccb2bd5ed..cde4acbc8a 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -779,8 +779,8 @@ Verify any alias symlinks in each tap\. \fB\-\-syntax\fR Syntax\-check all of Homebrew\'s Ruby files (if no \fB\fR is passed)\. . -.SS "\fBreinstall\fR [\fIoptions\fR] \fIformula\fR" -Uninstall and then install \fIformula\fR using the same options it was originally installed with, plus any appended brew formula options\. +.SS "\fBreinstall\fR [\fIoptions\fR] \fIformula\fR|\fIcask\fR" +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 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\.