1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

tool/sync_default_gems.rb: Prevent infinite loop due to unknown options

This commit is contained in:
Kenta Murata 2021-01-12 09:56:58 +09:00
parent 71b17c4110
commit f7dc4d5cda
No known key found for this signature in database
GPG key ID: CEFE8AFB6081B062

View file

@ -536,6 +536,9 @@ else
when "-a"
auto = true
ARGV.shift
else
$stderr.puts "Unknown command line option: #{ARGV[0]}"
exit 1
end
end
gem = ARGV.shift