aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMike McQuaid2018-02-28 14:25:16 +0000
committerGitHub2018-02-28 14:25:16 +0000
commit4176399537f6cff28e6e94b5473870f3d89d1024 (patch)
treea9c8df6c73b8451b754803bbdadf41e35854ba95 /Library/Homebrew/extend
parent8a23df7f76978df8df1efb65872e54ecfc6b831b (diff)
parent2205f62ec672643b845579f8687b0372b256f485 (diff)
downloadbrew-4176399537f6cff28e6e94b5473870f3d89d1024.tar.bz2
Merge pull request #3851 from MikeMcQuaid/pry
irb: add pry support.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ARGV.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index d9da014f0..2bc84620a 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -267,6 +267,10 @@ module HomebrewArgvExtension
include? "--fetch-HEAD"
end
+ def pry?
+ include?("--pry") || !ENV["HOMEBREW_PRY"].nil?
+ end
+
# eg. `foo -ns -i --bar` has three switches, n, s and i
def switch?(char)
return false if char.length > 1