cli/named_args: Rename method to be more consistent
This commit is contained in:
parent
d96ad81cd0
commit
a463348631
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user