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

[ruby/optparse] Reorganize Ruby example files for sharing (#14)

9a2352c1c9
This commit is contained in:
Burdette Lamar 2021-04-09 08:21:34 -05:00 committed by Nobuyoshi Nakada
parent 97abd0f6af
commit c795f30ef0
45 changed files with 43 additions and 55 deletions

View file

@ -0,0 +1,7 @@
require 'optparse'
include OptionParser::Acceptables
parser = OptionParser.new
parser.on('--decimal_numeric=DECIMAL_NUMERIC', DecimalNumeric) do |value|
p [value, value.class]
end
parser.parse!