From 937e4fe29601c93f0f2d739c0714c1700f041df8 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Mon, 4 Mar 2024 08:02:43 -0800 Subject: [PATCH] Resolve type errors --- Library/Homebrew/dev-cmd/irb.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/dev-cmd/irb.rb b/Library/Homebrew/dev-cmd/irb.rb index 77e07c783f4654..95d1feebb10379 100644 --- a/Library/Homebrew/dev-cmd/irb.rb +++ b/Library/Homebrew/dev-cmd/irb.rb @@ -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? @@ -67,7 +67,7 @@ def run return end - if args.pry? + if args[:pry?] Homebrew.install_bundler_gems!(groups: ["pry"]) require "pry" else @@ -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 @@ -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