Skip to content
Snippets Groups Projects
Unverified Commit 04f3ca78 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

update-report: use CLI::Parser.

parent 91446259
No related branches found
No related tags found
No related merge requests found
#: @hide_from_man_page
#: * `update_report` [`--preinstall`]:
#: The Ruby implementation of `brew update`. Never called manually.
require "formula_versions"
require "migrator"
require "formulary"
......@@ -19,7 +15,25 @@ module Homebrew
end
end
def update_report_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`update_report` [`--preinstall`]
The Ruby implementation of `brew update`. Never called manually.
EOS
switch "--preinstall",
description: "Run in 'auto-update' mode (faster, less output)."
switch :force
switch :debug
switch :verbose
hide_from_man_page!
end
end
def update_report
update_report_args.parse
HOMEBREW_REPOSITORY.cd do
analytics_message_displayed =
Utils.popen_read("git", "config", "--local", "--get", "homebrew.analyticsmessage").chomp == "true"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment