Ruby 3.1 リファレンスマニュアル > ライブラリ一覧 > rubygems/commandライブラリ > Gem::Commandクラス > defaults
defaults -> Hash
デフォルトのオプションを返します。