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
commit6d3ffe060e6e6860a51a5433ae0a0b77faae1c98 (patch)
treede1bcf92b1cb1e4c02a80fc91402bed433bef594 /Library/Homebrew
parent33884c5222b440c788ee51dd66f5804c4b7cc6b2 (diff)
downloadhomebrew-6d3ffe060e6e6860a51a5433ae0a0b77faae1c98.tar.bz2
readall: use named to check if ARGV is empty.
Otherwise e.g. --debug will be interpreted as a (bad) tap argument. Closes #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