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>
This commit is contained in:
parent
43aa00227a
commit
fe0c57cd0f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user