Skip to content
Snippets Groups Projects
Unverified Commit bfaff0af authored by Bo Anderson's avatar Bo Anderson Committed by GitHub
Browse files

Merge pull request #8171 from Rylan12/list-args

list: pass args properly
parents ad4d2ac1 c494789d
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ module Homebrew
def list
args = list_args.parse
return list_casks if args.cask?
return list_casks(args: args) if args.cask?
return list_unbrewed if args.unbrewed?
......@@ -66,7 +66,7 @@ module Homebrew
end
if args.pinned? || args.versions?
filtered_list
filtered_list args: args
elsif args.no_named?
if args.full_name?
full_names = Formula.installed.map(&:full_name).sort(&tap_and_name_comparison)
......@@ -134,7 +134,7 @@ module Homebrew
safe_system "find", *arguments
end
def filtered_list
def filtered_list(args:)
names = if args.no_named?
Formula.racks
else
......@@ -163,7 +163,7 @@ module Homebrew
end
end
def list_casks
def list_casks(args:)
cask_list = Cask::Cmd::List.new args.named
cask_list.one = ARGV.include? "-1"
cask_list.versions = args.versions?
......
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