Skip to content

Commit

Permalink
Merge pull request #641 from y-yagi/fix_deprecated_warning
Browse files Browse the repository at this point in the history
Fix "warning: deprecated Object#=~ is called on Integer"
  • Loading branch information
rafaelfranca authored Mar 28, 2019
2 parents fd114d1 + ed602ea commit 04d7560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thor/parser/arguments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.split(args)
arguments = []

args.each do |item|
break if item =~ /^-/
break if item.is_a?(String) && item =~ /^-/
arguments << item
end

Expand Down

0 comments on commit 04d7560

Please sign in to comment.