cmd/list: remove ARGV usage

This commit is contained in:
Bo Anderson 2020-08-03 12:45:16 +01:00
parent df16e9f2de
commit 25009f94e7

View File

@ -165,7 +165,7 @@ module Homebrew
def list_casks(args:) def list_casks(args:)
cask_list = Cask::Cmd::List.new args.named cask_list = Cask::Cmd::List.new args.named
cask_list.one = ARGV.include? "-1" cask_list.one = args.public_send(:'1?')
cask_list.versions = args.versions? cask_list.versions = args.versions?
cask_list.full_name = args.full_name? cask_list.full_name = args.full_name?
cask_list.run cask_list.run