| Message: 94438 |
 |
BY: Lars Christensen (larsch) DATE: 2010-08-04 13:56 SUBJECT: RE: Passing paramters to a script (not ocra) This was discussed here: http://rubyforge.org/tracker/index.php?func=detail&aid=27815&group_id=8185&atid=31686
The current way out of it is to wrap your script in another script that sets up the parameters, e.g.
myloader.rb:
raise "Unsupported arguments" unless ARGV.empty?
ARGV.replace(["--opt=val"])
load File.join(File.dirname($0),"realscript.rb")
| |