ruby-changes:64834
From: Kenta <ko1@a...>
Date: Tue, 12 Jan 2021 09:57:20 +0900 (JST)
Subject: [ruby-changes:64834] f7dc4d5cda (master): tool/sync_default_gems.rb: Prevent infinite loop due to unknown options
https://git.ruby-lang.org/ruby.git/commit/?id=f7dc4d5cda From f7dc4d5cda74e101fa66c1170c0b47deea09c0ee Mon Sep 17 00:00:00 2001 From: Kenta Murata <mrkn@m...> Date: Tue, 12 Jan 2021 09:56:58 +0900 Subject: tool/sync_default_gems.rb: Prevent infinite loop due to unknown options diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 1fed998..4f80db8 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -536,6 +536,9 @@ else https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L536 when "-a" auto = true ARGV.shift + else + $stderr.puts "Unknown command line option: #{ARGV[0]}" + exit 1 end end gem = ARGV.shift -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/