このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ

Ruby 3.2 リファレンスマニュアル

instance method GetoptLong#error_message

error_message -> String | nil[permalink][rdoc][edit]

現在のエラーのエラーメッセージを返します。エラーが発生していなければ、nil を返します。