cli/named_args: Rename method to be more consistent

This commit is contained in:
William Ma 2020-10-12 09:22:29 -04:00
parent d96ad81cd0
commit a463348631
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ module Homebrew
.map(&:freeze).freeze
end
def to_formulae_casks_unknowns(method: nil)
def to_formulae_and_casks_and_unavailable(method: nil)
@to_formulae_casks_unknowns ||= {}
@to_formulae_casks_unknowns[method] = downcased_unique_named.map do |name|
load_formula_or_cask(name, method: method)

View File

@ -103,7 +103,7 @@ module Homebrew
return
end
args.named.to_formulae_casks_unknowns.each_with_index do |obj, i|
args.named.to_formulae_and_casks_and_unavailable.each_with_index do |obj, i|
puts unless i.zero?
case obj
@ -120,7 +120,7 @@ module Homebrew
end
def print_info(args:)
args.named.to_formulae_casks_unknowns(method: nil).each_with_index do |obj, i|
args.named.to_formulae_and_casks_and_unavailable.each_with_index do |obj, i|
puts unless i.zero?
case obj