Skip to content
Snippets Groups Projects
Unverified Commit a81edc39 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #9165 from MikeMcQuaid/named_args_tap

cli/named_args: don't convert to taps.
parents 028087e7 f212bf20
No related branches found
No related tags found
No related merge requests found
......@@ -100,14 +100,12 @@ module Homebrew
to_formulae_to_casks(method: :resolve, only: only)
end
# Convert named arguments to {Tap}, {Formula} or {Cask} objects.
# Convert named arguments to {Formula} or {Cask} objects.
# If both a formula and cask exist with the same name, returns the
# formula and prints a warning unless `only` is specified.
def to_objects(only: nil, method: nil)
@to_objects ||= {}
@to_objects[only] ||= downcased_unique_named.flat_map do |name|
next Tap.fetch(name) if only == :tap || (only.nil? && name.count("/") == 1 && !name.start_with?("./", "/"))
load_formula_or_cask(name, only: only, method: method)
end.uniq.freeze
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment