The rvm command lets you tell it what environment you want to use and pass a block to it to invoke a script or something (for a one-time run of the command) e.g.:
rvm 1.9.2-p290@whatever-gemset do ruby my-script.rb
However, if the script accepts command line arguments as well and you try to pass them script at invocation, rvm complains. Does anyone know if rvm has syntax to support/allow this?
e.g.:
rvm 1.9.2-p290@whatever-gemset do ruby my-script.rb -p
ERROR: Unrecognized command line argument(s): '-p' ( see: 'rvm usage' )
do "ruby my-script.rb -p"