diff options
author | Kenta Murata <mrkn@mrkn.jp> | 2021-01-12 09:56:58 +0900 |
---|---|---|
committer | Kenta Murata <mrkn@mrkn.jp> | 2021-01-12 09:57:04 +0900 |
commit | f7dc4d5cda74e101fa66c1170c0b47deea09c0ee (patch) | |
tree | fea396068da131197253f3c7311e7ea001a7f32f /tool/sync_default_gems.rb | |
parent | 71b17c4110e1eeda9b4c1020e2ecad69efbc8c97 (diff) | |
download | ruby-f7dc4d5cda74e101fa66c1170c0b47deea09c0ee.tar.gz |
tool/sync_default_gems.rb: Prevent infinite loop due to unknown options
Diffstat (limited to 'tool/sync_default_gems.rb')
-rw-r--r-- | tool/sync_default_gems.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 1fed998af4..4f80db80b2 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -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 |