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>
This commit is contained in:
Mike McQuaid 2015-04-11 14:18:13 +01:00
parent 8363b35216
commit dfcb26b2c3

View File

@ -31,7 +31,7 @@ module Homebrew
end end
formulae = [] formulae = []
if ARGV.empty? if ARGV.named.empty?
formulae = Formula.names formulae = Formula.names
else else
user, repo = tap_args user, repo = tap_args