brew/Library/Homebrew/cmd/config.rb

32 lines
554 B
Ruby
Raw Normal View History

2020-11-25 17:03:23 +01:00
# typed: true
# frozen_string_literal: true
require "system_config"
2019-04-17 18:25:08 +09:00
require "cli/parser"
module Homebrew
2020-10-20 12:03:48 +02:00
extend T::Sig
2016-09-26 01:44:51 +02:00
module_function
2020-10-20 12:03:48 +02:00
sig { returns(CLI::Parser) }
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 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
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
SystemConfig.dump_verbose_config
end
end