22 lines
392 B
Ruby
Raw Normal View History

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
odeprecated "Homebrew.args", "`args = <command>_args.parse` and pass `args` along the call chain"
@printed_args_warning = true
end
@args ||= CLI::Args.new
end
end
class << self
prepend Compat
end
end