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?
|