
Do the usual deprecate/disable dance for the Homebrew 2.6.0 release. Not to be merged until the next release will definitely be 2.6.0.
21 lines
353 B
Ruby
21 lines
353 B
Ruby
# typed: true
|
|
# frozen_string_literal: true
|
|
|
|
module Homebrew
|
|
module Compat
|
|
attr_writer :args
|
|
|
|
def args
|
|
unless @printed_args_warning
|
|
odisabled "Homebrew.args", "`args = <command>_args.parse` and pass `args` along the call chain"
|
|
end
|
|
|
|
@args ||= CLI::Args.new
|
|
end
|
|
end
|
|
|
|
class << self
|
|
prepend Compat
|
|
end
|
|
end
|