M
Max Power
So I've been using Ocra for awhile now to build my Ruby executables and
now I want to pass basically a flag to the executable and hopefully have
that argument be recognized within the ruby script itself. First off,
I'm not sure if this is even possible.
When I do run my .rb script by hand with an argument, it finds it and
all is well. When I take this command and try to build the executable,
it gives an error that the argument is nil (basically I do a simple puts
on the argument).
My hopeful end result will be to create one executable that will do
numerous tasks, all of which is driven by the argument sent in. My only
other option, as far as I know, would be to build separate executables
for these tasks; however, that would result in dozens of executables.
Thoughts/Suggestions?
now I want to pass basically a flag to the executable and hopefully have
that argument be recognized within the ruby script itself. First off,
I'm not sure if this is even possible.
When I do run my .rb script by hand with an argument, it finds it and
all is well. When I take this command and try to build the executable,
it gives an error that the argument is nil (basically I do a simple puts
on the argument).
My hopeful end result will be to create one executable that will do
numerous tasks, all of which is driven by the argument sent in. My only
other option, as far as I know, would be to build separate executables
for these tasks; however, that would result in dozens of executables.
Thoughts/Suggestions?