I have some code that looks like this:
def go!
options = {}
return if not ARGV.options do |opts|
exit = true
opts.on_tail("--help", "show this message") { |exit| puts opts; }
opts.on('--logfile=LOGFILE', String) { |options[:logfile]| }
opts.parse!
!exit
end
orb = CORBA::ORB_init($0, ARGV)
# ...
end
I'd like for optparse to ignore invalid options so that I can pass them
to ORB_init. Is this possible?
Also, I noticed that getoptlong lets me use:
ruby foo.rb --opt arg
but optparse requires:
ruby foo.rb --opt=arg
Is it possible to get optparse to allow the form without '='?
Thanks,
Paul