Shame on me
I used --option_name and of course was returned a logical true
> opt.on("--option_name","Some Text") { |v| options[:option_name] = arg[0]}
If I use --option_name=name returns args value :)
opt.on("--option_name=name","Some Text") { |v| options[:option_name] =
v}
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---