According to CLI Help - http://groovy.codehaus.org/Groovy+CLI :
$groovy -help
usage: groovy
-a,
(defaults to '\s')
-c,
-e <script> specify a command line script
-h,
-i <extension> modify files in place
-l <port> listen on a port and process inbound lines
-n process files line by line
-p process files line by line and print result
-v,
groovy -cp groovy p, .
${user.home}/.groovy/lib , , ${user.home}. , , .
WA - CLASSPATH , .
Windows: set CLASSPATH=c:\temp\postgresql.jar;c:\temp\dbunit.jar ...
Unix/Linux (KSH): export CLASSPATH=${HOME}/temp/postgresql.jar:${TEMP}/temp/dbunit.jar ...