Hello, On 30 οε 2011, at 24:37 , Peter Lane wrote: > When you write: > > opts.on('-d', '--database', 'comments go here') do |x| > options[:database] = x > end > > 'x' will be set to 'true', not the input value you expect. If you want > flags with values, you need to include a "VAL" placeholder: > > opts.on('-d VAL', '--database VAL', 'comments go here') do |x| > options[:database] = x > end > > Then 'x' will hold the value after the -d flag. > > -- > Posted via http://www.ruby-forum.com/. > Thanks for the reply, worked fine! Regards! Panagiotis Atmatzidis ----------------------------- Pharmacy Student at VFU, Brno mailing lists: ml / convalesco.org personal info: http://about.me/atmosx The wise man said: "Never argue with an idiot, he brings you down to his level and beat you with experience."