style: no args default to Library/Homebrew.
This commit is contained in:
		
							parent
							
								
									3686243e5a
								
							
						
					
					
						commit
						263a8a0b73
					
				@ -19,7 +19,7 @@ require "utils/json"
 | 
			
		||||
module Homebrew
 | 
			
		||||
  def style
 | 
			
		||||
    target = if ARGV.named.empty?
 | 
			
		||||
      [HOMEBREW_LIBRARY]
 | 
			
		||||
      [HOMEBREW_LIBRARY_PATH]
 | 
			
		||||
    elsif ARGV.named.any? { |file| File.exist? file }
 | 
			
		||||
      ARGV.named
 | 
			
		||||
    elsif ARGV.named.any? { |tap| tap.count("/") == 1 }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user