Skip to content
Snippets Groups Projects
Commit f640cbac authored by Xu Cheng's avatar Xu Cheng Committed by Mike McQuaid
Browse files

brew uses: parse ARGV properly


`ARGV.flag?` = `ARGV.include?` + `ARGV.switch?`

Closes Homebrew/homebrew#36727.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 105eaf33
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,8 @@ module Homebrew
formulae = (ARGV.include? "--installed") ? Formula.installed : Formula
recursive = ARGV.flag? "--recursive"
ignores = []
ignores << "build?" if ARGV.flag? "--skip-build"
ignores << "optional?" if ARGV.flag? "--skip-optional"
ignores << "build?" if ARGV.include? "--skip-build"
ignores << "optional?" if ARGV.include? "--skip-optional"
uses = formulae.select do |f|
used_formulae.all? do |ff|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment