mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
cb01437c24
commit
f89486965b
53 changed files with 8 additions and 8 deletions
7
doc/optparse/ruby/octal_integer.rb
Normal file
7
doc/optparse/ruby/octal_integer.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require 'optparse'
|
||||
include OptionParser::Acceptables
|
||||
parser = OptionParser.new
|
||||
parser.on('--octal_integer=OCTAL_INTEGER', OctalInteger) do |value|
|
||||
p [value, value.class]
|
||||
end
|
||||
parser.parse!
|
Loading…
Add table
Add a link
Reference in a new issue