2020-10-10 14:16:11 +02:00
|
|
|
# typed: false
|
2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-04-25 18:01:15 +01:00
|
|
|
require "system_config"
|
2019-04-17 18:25:08 +09:00
|
|
|
require "cli/parser"
|
2010-09-11 20:22:54 +01:00
|
|
|
|
2014-06-18 22:41:47 -05:00
|
|
|
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`
|
|
|
|
|
2019-08-19 22:44:50 -04:00
|
|
|
Show Homebrew and system configuration info useful for debugging. If you file
|
|
|
|
a bug report, you will be required to provide this information.
|
2019-01-20 21:29:19 +05:30
|
|
|
EOS
|
2020-07-30 18:40:10 +02:00
|
|
|
|
2019-12-13 16:50:54 -05:00
|
|
|
max_named 0
|
2019-01-20 21:29:19 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-04-26 23:31:39 -07:00
|
|
|
def config
|
2019-01-20 21:29:19 +05:30
|
|
|
config_args.parse
|
2019-02-19 13:12:52 +00:00
|
|
|
|
2016-04-25 18:01:15 +01:00
|
|
|
SystemConfig.dump_verbose_config
|
2010-09-11 20:22:54 +01:00
|
|
|
end
|
|
|
|
end
|