mirror of
https://github.com/ruby/ruby.git
synced 2025-08-16 22:19:02 +02:00
7 lines
190 B
Ruby
7 lines
190 B
Ruby
require 'optparse'
|
|
include OptionParser::Acceptables
|
|
parser = OptionParser.new
|
|
parser.on('--octal_integer=OCTAL_INTEGER', OctalInteger) do |value|
|
|
p [value, value.class]
|
|
end
|
|
parser.parse!
|