aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/brew5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 9420fbb2e..e1d162c3b 100755
--- a/bin/brew
+++ b/bin/brew
@@ -298,8 +298,11 @@ begin
our_deps = []
checked = {}
to_check = [name]
+ stop_early = false
+
+ until to_check.empty? or stop_early
+ stop_early = ARGV.include?("-1") or ARGV.include?("--1")
- until to_check.empty?
item = to_check.pop
checked[item] = true