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:
parent
8363b35216
commit
dfcb26b2c3
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user