B
bcorrigan78
Hey all,
I must be doing something wrong here. Im calling the following file
this way:
ruby script.rb -s 1234
or
ruby script.rb -s1111
#Code snip
require 'optparse'
opts = OptionParser.new
opts.on("-s", "--size VAL", Integer) do |val|
puts "-s #{val}"
puts val
end
But..no matter what I do, I don't get any values out. I must be doing
something wrong??
Thanks!
Brian
PS: The documentation really isn't too clear on this...
I must be doing something wrong here. Im calling the following file
this way:
ruby script.rb -s 1234
or
ruby script.rb -s1111
#Code snip
require 'optparse'
opts = OptionParser.new
opts.on("-s", "--size VAL", Integer) do |val|
puts "-s #{val}"
puts val
end
But..no matter what I do, I don't get any values out. I must be doing
something wrong??
Thanks!
Brian
PS: The documentation really isn't too clear on this...