Merge pull request #8197 from Bo98/list-argv
cmd/list: remove ARGV usage
This commit is contained in:
		
						commit
						15fba12254
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user