diff --git a/completions/bash/brew b/completions/bash/brew index 3d3064249b..fd9bd9ee5c 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -873,6 +873,7 @@ _brew_fetch() { -*) __brewcomp " --HEAD + --bottle-tag --build-bottle --build-from-source --cask diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index 49a3996a98..154d070631 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -647,6 +647,7 @@ __fish_brew_complete_arg 'extract' -a '(__fish_brew_suggest_taps_installed)' __fish_brew_complete_cmd 'fetch' 'Download a bottle (if available) or source packages for formulae and binaries for casks' __fish_brew_complete_arg 'fetch' -l HEAD -d 'Fetch HEAD version instead of stable version' +__fish_brew_complete_arg 'fetch' -l bottle-tag -d 'Download a bottle for given tag' __fish_brew_complete_arg 'fetch' -l build-bottle -d 'Download source packages (for eventual bottling) rather than a bottle' __fish_brew_complete_arg 'fetch' -l build-from-source -d 'Download source packages rather than a bottle' __fish_brew_complete_arg 'fetch' -l cask -d 'Treat all named arguments as casks' diff --git a/completions/zsh/_brew b/completions/zsh/_brew index 0aeffa4a6f..81b5a6a132 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -801,12 +801,13 @@ _brew_extract() { _brew_fetch() { _arguments \ '(--cask)--HEAD[Fetch HEAD version instead of stable version]' \ - '(--build-from-source --force-bottle --cask)--build-bottle[Download source packages (for eventual bottling) rather than a bottle]' \ - '(--build-bottle --force-bottle)--build-from-source[Download source packages rather than a bottle]' \ + '(--build-from-source --build-bottle --force-bottle --cask)--bottle-tag[Download a bottle for given tag]' \ + '(--build-from-source --force-bottle --bottle-tag --cask)--build-bottle[Download source packages (for eventual bottling) rather than a bottle]' \ + '(--build-bottle --force-bottle --bottle-tag)--build-from-source[Download source packages rather than a bottle]' \ '--debug[Display any debugging information]' \ '(--cask)--deps[Also download dependencies for any listed formula]' \ '--force[Remove a previously cached version and re-fetch]' \ - '(--build-from-source --build-bottle --cask)--force-bottle[Download a bottle if it exists for the current or newest version of macOS, even if it would not be used during installation]' \ + '(--build-from-source --build-bottle --bottle-tag --cask)--force-bottle[Download a bottle if it exists for the current or newest version of macOS, even if it would not be used during installation]' \ '--help[Show this message]' \ '--no-quarantine[Disable/enable quarantining of downloads (default: enabled)]' \ '--quarantine[Disable/enable quarantining of downloads (default: enabled)]' \ @@ -817,7 +818,7 @@ _brew_fetch() { '(--cask)--formula[Treat all named arguments as formulae]' \ '*::formula:__brew_formulae' \ - cask \ - '(--HEAD --deps --s --build-bottle --force-bottle --formula)--cask[Treat all named arguments as casks]' \ + '(--HEAD --deps --s --build-bottle --force-bottle --bottle-tag --formula)--cask[Treat all named arguments as casks]' \ '*::cask:__brew_casks' } diff --git a/docs/Manpage.md b/docs/Manpage.md index d3c024431d..48417c8651 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -202,6 +202,8 @@ an issue; just ignore this. Download a bottle (if available) or source packages for *`formula`*e and binaries for *`cask`*s. For files, also print SHA-256 checksums. +* `--bottle-tag`: + Download a bottle for given tag. * `--HEAD`: Fetch HEAD version instead of stable version. * `-f`, `--force`: diff --git a/manpages/brew.1 b/manpages/brew.1 index 1b95231bc3..96d374a49a 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -244,6 +244,10 @@ Enable debugging and profiling of audit methods\. Download a bottle (if available) or source packages for \fIformula\fRe and binaries for \fIcask\fRs\. For files, also print SHA\-256 checksums\. . .TP +\fB\-\-bottle\-tag\fR +Download a bottle for given tag\. +. +.TP \fB\-\-HEAD\fR Fetch HEAD version instead of stable version\. .