From: "Imobach González Sosa" Date: 2006-08-30T01:06:20+09:00 Subject: Mandatory options with optparse Hi all, I was playing with optparse (great stuff ;)) and I didn't see how to check if a mandatory option have been supplied (note that I say mandatory *option*, not mandatory *argument*). So, if I got the next chunk of code: opts = OptionParser.new do |opts| opts.banner = "My silly example" opts.on("-m", "--message MESSAGE", "A message to show") do |m| options.message = m end end I figured out that I'd must check it by my own (if options.message.nil?...), but I only wanna know if there's a "optparse-way". Thanks in advance! -- _o) Imobach Gonz�lez Sosa //\ email: imobachgs at banot dot net V_/_ jid: osoh at jabberes dot org url: http://www.banot.net/~osoh/ blog: http://devnull.blogs.banot.net