mirror of
https://github.com/ruby/ruby.git
synced 2026-01-28 21:14:28 +00:00
8 lines
196 B
Ruby
8 lines
196 B
Ruby
require 'optparse'
|
|
include OptionParser::Acceptables
|
|
parser = OptionParser.new
|
|
parser.on('--decimal_integer=DECIMAL_INTEGER', DecimalInteger) do |value|
|
|
p [value, value.class]
|
|
end
|
|
parser.parse!
|