1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

optparse.rb: update --version example [ci skip]

* lib/optparse.rb (OptparseExample): [DOC] update example code for
  --version option, to print OptparseExample::Version.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-02-08 15:26:11 +00:00
parent 37d346dc83
commit 031c46f83a

View file

@ -243,6 +243,8 @@
# require 'pp'
#
# class OptparseExample
# Version = '1.0.0'
#
# CODES = %w[iso-2022-jp shift_jis euc-jp utf8 binary]
# CODE_ALIASES = { "jis" => "iso-2022-jp", "sjis" => "shift_jis" }
#
@ -298,7 +300,7 @@
# end
# # Another typical switch to print the version.
# parser.on_tail("--version", "Show version") do
# puts ::Version.join('.')
# puts Version
# exit
# end
# end