Skip to content

Commit

Permalink
Resolve type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Mar 4, 2024
1 parent 6db08ff commit 937e4fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Library/Homebrew/dev-cmd/irb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def raw_args
def run
clean_argv

if args.examples?
if args[:examples?]
puts <<~EOS
'v8'.f # => instance of the v8 formula
:hub.f.latest_version_installed?
Expand All @@ -67,7 +67,7 @@ def run
return
end

if args.pry?
if args[:pry?]
Homebrew.install_bundler_gems!(groups: ["pry"])
require "pry"
else
Expand All @@ -79,7 +79,7 @@ def run
require "cask"

ohai "Interactive Homebrew Shell", "Example commands available with: `brew irb --examples`"
if args.pry?
if args[:pry?]
Pry.config.should_load_rc = false # skip loading .pryrc
Pry.config.history_file = "#{Dir.home}/.brew_pry_history"
Pry.config.memory_size = 100 # max lines to save to history file
Expand All @@ -93,6 +93,8 @@ def run
end
end

private

# Remove the `--debug`, `--verbose` and `--quiet` options which cause problems
# for IRB and have already been parsed by the CLI::Parser.
def clean_argv
Expand Down

0 comments on commit 937e4fe

Please sign in to comment.