B
Bryan Richardson
[Note: parts of this message were removed to make it a legal post.]
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|
<do something with 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
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|
<do something with 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