Ruby 2.4.0 リファレンスマニュアル > ライブラリ一覧 > optparseライブラリ > OptionParserクラス > version
version -> String
プログラムのバージョンを文字列で返します。
[SEE_ALSO] OptionParser#ver