griffon/griffon — pull request #9 by marcpa00 (2012-04-30 23:51:10+00:00)
Title: Pass main args array to scripts

Changes to make it possible to parse a script's command line with something like groovy.util.CliBuilder :

Make sure parameters passed to the GriffonScriptRunner are separate elements as build up the shell interpreter so the String[] args array in main is intact.
Put this args array into the script binding under the property 'unparsedArgs'.