diff --git a/completions/bash/brew b/completions/bash/brew index b887c28c24..9aad59b04d 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -370,6 +370,7 @@ _brew_abv() { --installed --json --quiet + --sizes --variations --verbose " @@ -1389,6 +1390,7 @@ _brew_info() { --installed --json --quiet + --sizes --variations --verbose " diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index 931a364eaf..2fbe4652d0 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -313,6 +313,7 @@ __fish_brew_complete_arg 'abv' -l help -d 'Show this message' __fish_brew_complete_arg 'abv' -l installed -d 'Print JSON of formulae that are currently installed' __fish_brew_complete_arg 'abv' -l json -d 'Print a JSON representation. Currently the default value for version is `v1` for formula. For formula and cask use `v2`. See the docs for examples of using the JSON output: https://docs.brew.sh/Querying-Brew' __fish_brew_complete_arg 'abv' -l quiet -d 'Make some output more quiet' +__fish_brew_complete_arg 'abv' -l sizes -d 'Show the size of installed formulae and casks' __fish_brew_complete_arg 'abv' -l variations -d 'Include the variations hash in each formula\'s JSON output' __fish_brew_complete_arg 'abv' -l verbose -d 'Show more verbose analytics data for formula' __fish_brew_complete_arg 'abv; and not __fish_seen_argument -l cask -l casks' -a '(__fish_brew_suggest_formulae_all)' @@ -941,6 +942,7 @@ __fish_brew_complete_arg 'info' -l help -d 'Show this message' __fish_brew_complete_arg 'info' -l installed -d 'Print JSON of formulae that are currently installed' __fish_brew_complete_arg 'info' -l json -d 'Print a JSON representation. Currently the default value for version is `v1` for formula. For formula and cask use `v2`. See the docs for examples of using the JSON output: https://docs.brew.sh/Querying-Brew' __fish_brew_complete_arg 'info' -l quiet -d 'Make some output more quiet' +__fish_brew_complete_arg 'info' -l sizes -d 'Show the size of installed formulae and casks' __fish_brew_complete_arg 'info' -l variations -d 'Include the variations hash in each formula\'s JSON output' __fish_brew_complete_arg 'info' -l verbose -d 'Show more verbose analytics data for formula' __fish_brew_complete_arg 'info; and not __fish_seen_argument -l cask -l casks' -a '(__fish_brew_suggest_formulae_all)' diff --git a/completions/zsh/_brew b/completions/zsh/_brew index 20ef1bc1eb..e0e7592fb9 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -431,6 +431,7 @@ _brew_abv() { '(--eval-all --all)--installed[Print JSON of formulae that are currently installed]' \ '(--fetch-manifest)--json[Print a JSON representation. Currently the default value for version is `v1` for formula. For formula and cask use `v2`. See the docs for examples of using the JSON output: https://docs.brew.sh/Querying-Brew]' \ '--quiet[Make some output more quiet]' \ + '--sizes[Show the size of installed formulae and casks]' \ '--variations[Include the variations hash in each formula'\''s JSON output]' \ '--verbose[Show more verbose analytics data for formula]' \ - formula \ @@ -1180,6 +1181,7 @@ _brew_info() { '(--eval-all --all)--installed[Print JSON of formulae that are currently installed]' \ '(--fetch-manifest)--json[Print a JSON representation. Currently the default value for version is `v1` for formula. For formula and cask use `v2`. See the docs for examples of using the JSON output: https://docs.brew.sh/Querying-Brew]' \ '--quiet[Make some output more quiet]' \ + '--sizes[Show the size of installed formulae and casks]' \ '--variations[Include the variations hash in each formula'\''s JSON output]' \ '--verbose[Show more verbose analytics data for formula]' \ - formula \ diff --git a/docs/Manpage.md b/docs/Manpage.md index 3f714f0af4..d0f61174d8 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -742,6 +742,10 @@ Display brief statistics for your Homebrew installation. If a *`formula`* or : Treat all named arguments as casks. +`--sizes` + +: Show the size of installed formulae and casks. + ### `install` \[*`options`*\] *`formula`*\|*`cask`* \[...\] Install a *`formula`* or *`cask`*. Additional options specific to a *`formula`* diff --git a/manpages/brew.1 b/manpages/brew.1 index 5b483868a9..6650acd069 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -463,6 +463,9 @@ Treat all named arguments as formulae\. .TP \fB\-\-cask\fP Treat all named arguments as casks\. +.TP +\fB\-\-sizes\fP +Show the size of installed formulae and casks\. .SS "\fBinstall\fP \fR[\fIoptions\fP] \fIformula\fP|\fIcask\fP \fR[\.\.\.]" Install a \fIformula\fP or \fIcask\fP\&\. Additional options specific to a \fIformula\fP may be appended to the command\. .P