diff --git a/docs/Manpage.md b/docs/Manpage.md index a643b40a43954..6af692718b427 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -1856,7 +1856,7 @@ This sanitized build environment ignores unrequested dependencies, which makes s * `-f`, `--force`: `install` runs with `--force`/`--overwrite`. `dump` overwrites an existing `Brewfile`. `cleanup` actually performs its cleanup operations. * `--cleanup`: - `install` performs cleanup operation, same as running `cleanup --force`. This is enabled by default if HOMEBREW_BUNDLE_INSTALL_CLEANUP is set. + `install` performs cleanup operation, same as running `cleanup --force`. This is enabled by default if HOMEBREW_BUNDLE_INSTALL_CLEANUP is set and `--global` is passed. * `--no-lock`: `install` won't output a `Brewfile.lock.json`. * `--all`: diff --git a/manpages/brew.1 b/manpages/brew.1 index d2eaee580d905..35d5e6dbeff65 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -2638,7 +2638,7 @@ Read the \fBBrewfile\fR from \fB~/\.Brewfile\fR or the \fBHOMEBREW_BUNDLE_FILE_G . .TP \fB\-\-cleanup\fR -\fBinstall\fR performs cleanup operation, same as running \fBcleanup \-\-force\fR\. This is enabled by default if HOMEBREW_BUNDLE_INSTALL_CLEANUP is set\. +\fBinstall\fR performs cleanup operation, same as running \fBcleanup \-\-force\fR\. This is enabled by default if HOMEBREW_BUNDLE_INSTALL_CLEANUP is set and \fB\-\-global\fR is passed\. . .TP \fB\-\-no\-lock\fR