Skip to content

Commit

Permalink
Merge pull request #13245 from boblail/lail/brew-update---quiet
Browse files Browse the repository at this point in the history
Document the `--quiet` flag on `brew update`
  • Loading branch information
MikeMcQuaid committed May 5, 2022
2 parents 6146564 + c715ea7 commit 1c9f218
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/cmd/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions Library/Homebrew/test/completions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def delete_completions_setting(setting: "linkcompletions")
"--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
Expand Down Expand Up @@ -281,6 +282,7 @@ def delete_completions_setting(setting: "linkcompletions")
--help
--merge
--preinstall
--quiet
--verbose
"
return
Expand Down Expand Up @@ -345,6 +347,7 @@ def delete_completions_setting(setting: "linkcompletions")
'--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
Expand Down Expand Up @@ -404,6 +407,7 @@ def delete_completions_setting(setting: "linkcompletions")
__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
Expand Down

0 comments on commit 1c9f218

Please sign in to comment.