changed to enable to use command line arguments supplied for the script.... #298

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@uehaj
uehaj commented Dec 12, 2012

... And to make include the script name in error message, change GroovyShell.evaluate(String) to GroovyShell.run(File).

Use of shell variable 'args' in groovy scripts are very common and useful. But in current implementation, scripts called from 'run-script' can't use args at all so fixed it.

As a side effect, in this version can't spcify multiple scripts at one command invocation of run-script.
It might be better to create another new script(for example 'run-batch') to use 'args' arguments from script.
I have no good idea anymore so send in this form as a one proposal.

Best regards,

@uehaj uehaj changed to enable to use command line arguments supplied for the scri…
…pt. And to make include the script name in error message, change GroovyShell.evaluate(String) to GroovyShell.run(File).
8959a9c
@lhotari
Member
lhotari commented Aug 8, 2014

Closing outdated pull requests.

@lhotari lhotari closed this Aug 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment