From 1a83801587b7fc21b3b0f61f0946aa892e867583 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Fri, 6 Dec 2024 14:26:18 -0800 Subject: [PATCH] Add special case for #tap --- Library/Homebrew/cli/args.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Library/Homebrew/cli/args.rb b/Library/Homebrew/cli/args.rb index 2b1292b845..5ea0f3e8e2 100644 --- a/Library/Homebrew/cli/args.rb +++ b/Library/Homebrew/cli/args.rb @@ -70,6 +70,13 @@ module Homebrew sig { returns(T.nilable(String)) } def os = nil + sig { params(_blk: T.untyped).returns(T.untyped) } + def tap(&_blk) + return super if block_given? # Object#tap + + @table[:tap] + end + sig { params(processed_options: OptionsType).void } def freeze_processed_options!(processed_options) # Reset cache values reliant on processed_options