diff options
| author | Mike McQuaid | 2018-02-28 11:36:23 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2018-02-28 11:36:23 +0000 |
| commit | 2205f62ec672643b845579f8687b0372b256f485 (patch) | |
| tree | 7cb071d7138feb1811fe2f700dba581c654cb554 /Library/Homebrew/extend | |
| parent | 6302da37f66fe9bb04e95fe67e8529fe0086187d (diff) | |
| download | brew-2205f62ec672643b845579f8687b0372b256f485.tar.bz2 | |
irb: add pry support.
Make `brew irb` optionally support `pry`. While doing so, also make it a `dev-cmd`.
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/ARGV.rb | 4 |
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 |
