Fix args validation

This commit is contained in:
Douglas Eichelberger 2024-12-06 18:09:56 -08:00
parent 2902eec390
commit 6d19b84ef1
2 changed files with 8 additions and 2 deletions

View File

@ -404,7 +404,10 @@ module Homebrew
end end
unless ignore_invalid_options unless ignore_invalid_options
validate_options unless @is_dev_cmd unless @is_dev_cmd
set_default_options
validate_options
end
check_constraint_violations check_constraint_violations
check_named_args(named_args) check_named_args(named_args)
end end
@ -424,6 +427,9 @@ module Homebrew
@args @args
end end
sig { void }
def set_default_options; end
sig { void } sig { void }
def validate_options; end def validate_options; end

View File

@ -11,7 +11,7 @@ module OS
sig { void } sig { void }
def set_default_options def set_default_options
args.table[:formula?] = true if args.respond_to?(:formula?) args.table[:formula?] = true
end end
sig { void } sig { void }