From c715ea7fd12271c1899d0335d30cb794bd3955b5 Mon Sep 17 00:00:00 2001 From: Bob Lail Date: Wed, 4 May 2022 10:38:24 -0500 Subject: [PATCH] Document the `--quiet` flag on `brew update` --- Library/Homebrew/cmd/update.sh | 1 + Library/Homebrew/test/completions_spec.rb | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index acafd0ec9a..e7de624e71 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -5,6 +5,7 @@ #: --merge Use `git merge` to apply updates (rather than `git rebase`). #: --preinstall Run on auto-updates (e.g. before `brew install`). Skips some slower steps. #: -f, --force Always do a slower, full update check (even if unnecessary). +#: -q, --quiet Make some output more quiet #: -v, --verbose Print the directories checked and `git` operations performed. #: -d, --debug Display a trace of all shell commands as they are executed. #: -h, --help Show this message. diff --git a/Library/Homebrew/test/completions_spec.rb b/Library/Homebrew/test/completions_spec.rb index 11f95ed35b..8a1378da94 100644 --- a/Library/Homebrew/test/completions_spec.rb +++ b/Library/Homebrew/test/completions_spec.rb @@ -200,6 +200,7 @@ describe Homebrew::Completions do "--help" => "Show this message.", "--merge" => "Use `git merge` to apply updates (rather than `git rebase`).", "--preinstall" => "Run on auto-updates (e.g. before `brew install`). Skips some slower steps.", + "--quiet" => "Make some output more quiet", "--verbose" => "Print the directories checked and `git` operations performed.", } expect(described_class.command_options("update")).to eq expected_options @@ -281,6 +282,7 @@ describe Homebrew::Completions do --help --merge --preinstall + --quiet --verbose " return @@ -345,6 +347,7 @@ describe Homebrew::Completions do '--help[Show this message]' \\ '--merge[Use `git merge` to apply updates (rather than `git rebase`)]' \\ '--preinstall[Run on auto-updates (e.g. before `brew install`). Skips some slower steps]' \\ + '--quiet[Make some output more quiet]' \\ '--verbose[Print the directories checked and `git` operations performed]' } COMPLETION @@ -404,6 +407,7 @@ describe Homebrew::Completions do __fish_brew_complete_arg 'update' -l help -d 'Show this message' __fish_brew_complete_arg 'update' -l merge -d 'Use `git merge` to apply updates (rather than `git rebase`)' __fish_brew_complete_arg 'update' -l preinstall -d 'Run on auto-updates (e.g. before `brew install`). Skips some slower steps' + __fish_brew_complete_arg 'update' -l quiet -d 'Make some output more quiet' __fish_brew_complete_arg 'update' -l verbose -d 'Print the directories checked and `git` operations performed' COMPLETION end