From: Keith Fahlgren Date: 2006-03-21T03:41:30+09:00 Subject: Re: I need some help with OptionsParser On Monday 20 March 2006 1:33 pm, bcorrigan78@gmail.com wrote: > Not working on my end.. Still PUTS nothing? Are you parsing them? keith@devel /work/tools/keith/bin/oneoff $ cat ./rubytalk.rb #!/usr/bin/env ruby require 'optparse' opts = OptionParser.new opts.on("-s", "--size VAL", "Something to describe size") {|s| puts "Size is: #{s}"} opts.parse! # the important part... keith@devel /work/tools/keith/bin/oneoff $ ./rubytalk.rb -s "Very Big" Size is: Very Big HTH, Keith