Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Simon Ridley
RE: OCRA - Command Line argument [ reply ]  
2012-12-24 13:11
Ok, so I discovered that to do what I was after, I needed to do the following:

ruby -S ocra examplescript.rb --foo

However Im now finding that the argument provided gets packaged with the script, so when I execute the exe the output relates to the first argument provided when the exe was built, even If I provide the exe another argument I still get the same result. How can I solve this?

By: Simon Ridley
OCRA - Command Line argument [ reply ]  
2012-12-22 15:58
I'm trying to include an argument with my script when converting it with OCRA. For example:

ruby -S examplescript.rb Foo

however, I get the following returned:

ERROR: Foo Not Found!

How do I include the argument?