2020-09-23 03:43:54 +02:00
|
|
|
# typed: true
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Homebrew
|
|
|
|
module Compat
|
|
|
|
attr_writer :args
|
|
|
|
|
|
|
|
def args
|
|
|
|
unless @printed_args_warning
|
2020-11-24 16:44:02 +00:00
|
|
|
odisabled "Homebrew.args", "`args = <command>_args.parse` and pass `args` along the call chain"
|
2020-09-23 03:43:54 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
@args ||= CLI::Args.new
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class << self
|
|
|
|
prepend Compat
|
|
|
|
end
|
|
|
|
end
|