From: ara.t.howard@... Date: 2006-03-21T04:17:21+09:00 Subject: Re: I need some help with OptionsParser On Tue, 21 Mar 2006, bcorrigan78@gmail.com wrote: > Hey.. Well, I was.. There really must be something up here. > > Code: (test.rb) > require 'optparse' > opts = OptionParser.new > opts.on("-s", "--size VAL", "Something to describe size") {|s| puts > "Size is: #{s}"} > opts.parse! # the important part... > > Result: > C:\temp>ruby -- test.rb -s "Very Big" ^^ ^^ ^^ you are passing '-s' to ruby, not test.rb. the '--' tells ruby to stop processing command line options. -a -- share your knowledge. it's a way to achieve immortality. - h.h. the 14th dali lama