Ah, you're using test/unit and running into this problem.  That bit of 
information that would have been pretty useful.

 

Try putting the args that you want as the end of the cmd line, and precede them 
with a double dash.  That should let test/unit pass them thru.

 

Something that looks like this

 

Ruby myscript.rb -- args go here to be passed to tests.

 

I forget where I saw this from.  

 

Hth

-Alan

 

   _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clayton 
Cottingham
Sent: Monday, February 12, 2007 8:30 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] getting commnad line arguements

 

This wont work , as test/unit 

 Clobbers the command line args

 

Chris's solution will work

 

 

 

   _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Željko Filipin
Sent: Monday, February 12, 2007 1:50 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] getting commnad line arguements

 

HYPERLINK 
"http://www.rubycentral.com/book/rubyworld.html"http://www.rubycentral.com/book/rubyworld.html
-- 
Zeljko Filipin
HYPERLINK "http://zeljkofilipin.com"zeljkofilipin.com 


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 2/12/2007 1:23 
PM



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 2/12/2007 1:23 
PM
 
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to