Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
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")



Thread View

Thread Author Date
Passing paramters to a script (not ocra)Tim Nicholson2010-08-03 09:01
      RE: Passing paramters to a script (not ocra)Lars Christensen2010-08-04 13:56
      RE: Passing paramters to a script (not ocra)Bernard Kenik2010-08-04 19:03
            RE: Passing paramters to a script (not ocra)Tim Nicholson2010-08-05 07:26
                  RE: Passing paramters to a script (not ocra)Jarmo Pertman2010-08-06 06:50
                        RE: Passing paramters to a script (not ocra)Tim Nicholson2010-08-06 08:59
                              RE: Passing paramters to a script (not ocra)Jarmo Pertman2010-08-07 13:10
                                    RE: Passing paramters to a script (not ocra)Tim Nicholson2010-08-09 06:50

Post a followup to this message