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??
Help!
THanks all,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060320/360fd612/attachment.html