I'm stuck in a totally stupid situation. When I use the snippet below, despite my command line being "./the_script.rb -s serv" and I check the value of the service variable within the code, it's always taken to be of boolean class by optparse. So I cannot get my string from the command line...
any ideas ?
opt = OptionParser.new do |opt|
opt.on('-s','--service','twitter (tw) or identica (id)') do |val|
service = val.to_s
end
end