brew/Library/Homebrew/cmd/config.rb

28 lines
559 B
Ruby
Raw Normal View History

require "system_config"
2019-04-17 18:25:08 +09:00
require "cli/parser"
module Homebrew
2016-09-26 01:44:51 +02:00
module_function
2019-01-20 21:29:19 +05:30
def config_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`config`
Show Homebrew and system configuration useful for debugging. If you file
a bug report, you will likely be asked for this information if you do not
provide it.
EOS
switch :verbose
switch :debug
end
end
2014-04-26 23:31:39 -07:00
def config
2019-01-20 21:29:19 +05:30
config_args.parse
raise UsageError unless args.remaining.empty?
SystemConfig.dump_verbose_config
end
end