brew/Library/Homebrew/cmd/config.rb
2019-12-15 00:04:45 -05:00

29 lines
533 B
Ruby

# frozen_string_literal: true
require "system_config"
require "cli/parser"
module Homebrew
module_function
def config_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`config`
Show Homebrew and system configuration info useful for debugging. If you file
a bug report, you will be required to provide this information.
EOS
switch :verbose
switch :debug
max_named 0
end
end
def config
config_args.parse
SystemConfig.dump_verbose_config
end
end