aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2015-04-11 14:18:13 +0100
committerMike McQuaid2015-04-12 21:37:29 -0700
commitdfcb26b2c3a3437e62f934d2c666105e7b15647b (patch)
tree802812ae0f8dabf7c5f666670725bc27e5d244b8 /Library/Homebrew
parent8363b352166c6f82108a6f64b3db16ecd4c0937c (diff)
downloadbrew-dfcb26b2c3a3437e62f934d2c666105e7b15647b.tar.bz2
readall: use named to check if ARGV is empty.
Otherwise e.g. --debug will be interpreted as a (bad) tap argument. Closes Homebrew/homebrew#38569. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/readall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/readall.rb b/Library/Homebrew/cmd/readall.rb
index 440709ec2..513a9b7c2 100644
--- a/Library/Homebrew/cmd/readall.rb
+++ b/Library/Homebrew/cmd/readall.rb
@@ -31,7 +31,7 @@ module Homebrew
end
formulae = []
- if ARGV.empty?
+ if ARGV.named.empty?
formulae = Formula.names
else
user, repo = tap_args