Skip to content

Commit

Permalink
Prefer require_relative
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Sep 3, 2024
1 parent 19700e9 commit bb08cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/optparse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ def help_exit
Switch::OptionalArgument.new do |pkg|
if pkg
begin
require 'optparse/version'
require_relative 'optparse/version'
rescue LoadError
else
show_version(*pkg.split(/,/)) or
Expand Down

0 comments on commit bb08cd4

Please sign in to comment.