Hello,
Does anyone know what causes the “Invalid Data Source Name” exception?
I
get this from OptionParser. Here’s my code:
opts = OptionParser.new
opts.on(’–load-file FILE’) do |file|
end
begin
opts.parse!(ARGV)
rescue Exception => e
puts e, “”, opts
exit 0
end
when I run this, I get the following output:
#:~/devel$ ./program --load-file test.txt
Invalid Data Source Name
Usage: program [options]
– load-file FILE
#:~/devel$
Any suggestions?! Thanks! – BTR