Passing arguments to a ruby script while using the expanded rvm command line syntax? -
the rvm command lets tell environment want use , pass block invoke script or (for one-time run of command) e.g.:
rvm 1.9.2-p290@whatever-gemset ruby my-script.rb
however, if script accepts command line arguments , try pass them script @ invocation, rvm complains. know if rvm has syntax support/allow this?
e.g.:
rvm 1.9.2-p290@whatever-gemset ruby my-script.rb -p error: unrecognized command line argument(s): '-p' ( see: 'rvm usage' )
to avoid rvm
trying parse parameters arguments rvm
itself, put them in quotes pass them single argument:
rvm 1.9.2-p290@whatever-gemset "ruby my-script.rb -p"
the reason fail if kind of shell-expansion being done before command executed non-standard behavior.
Comments
Post a Comment