mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 20:44:20 +00:00
7 lines
139 B
Ruby
7 lines
139 B
Ruby
require 'optparse'
|
|
parser = OptionParser.new
|
|
parser.on('--integer=INTEGER', Integer) do |value|
|
|
p [value, value.class]
|
|
end
|
|
parser.parse!
|