Merge pull request #8197 from Bo98/list-argv

cmd/list: remove ARGV usage
This commit is contained in:
Bo Anderson 2020-08-03 13:31:54 +01:00 committed by GitHub
commit 15fba12254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ module Homebrew
def list_casks(args:)
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.full_name = args.full_name?
cask_list.run