aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-02 15:11:24 +0100
committerJack Nagel2015-01-03 21:31:26 -0500
commitfe0c57cd0fadf9d476dbcfc86ae688a2b90dd7d0 (patch)
tree43090a50232357fcf09474f8f643818ee05d3147 /Library
parent43aa00227a1a27dcf8075766c6d21ed7fd1be032 (diff)
downloadbrew-fe0c57cd0fadf9d476dbcfc86ae688a2b90dd7d0.tar.bz2
brew irb --help replaced with --examples
The --help flag is intercepted by brew.rb and prints the global usage string. `irb` is never called when `brew irb --help` is executed. Closes Homebrew/homebrew#35466. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/irb.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/irb.rb b/Library/Homebrew/cmd/irb.rb
index 32a3bfc6d..b7832c492 100644
--- a/Library/Homebrew/cmd/irb.rb
+++ b/Library/Homebrew/cmd/irb.rb
@@ -15,14 +15,14 @@ end
module Homebrew
def irb
- if ARGV.include? "--help"
+ if ARGV.include? "--examples"
puts "'v8'.f # => instance of the v8 formula"
puts ":hub.f.installed?"
puts ":lua.f.methods - 1.methods"
puts ":mpd.f.recursive_dependencies.reject(&:installed?)"
else
ohai "Interactive Homebrew Shell"
- puts "Example commands available with: brew irb --help"
+ puts "Example commands available with: brew irb --examples"
IRB.start
end
end