summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2021-01-12 09:56:58 +0900
committerKenta Murata <mrkn@mrkn.jp>2021-01-12 09:57:04 +0900
commitf7dc4d5cda74e101fa66c1170c0b47deea09c0ee (patch)
treefea396068da131197253f3c7311e7ea001a7f32f /tool
parent71b17c4110e1eeda9b4c1020e2ecad69efbc8c97 (diff)
tool/sync_default_gems.rb: Prevent infinite loop due to unknown options
Diffstat (limited to 'tool')
-rw-r--r--tool/sync_default_gems.rb3
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