groovy --help (return code: 0)
usage: groovy [options] [args]
options:
-a,--autosplit <splitPattern> split lines using splitPattern (default '\s')
using implicit 'split' variable
-b,--basescript <class> Base class name for scripts (must derive from
Script)
-c,--encoding <charset> specify the encoding of the files
-classpath <path> Specify where to find the class files - must
be first argument
--configscript <arg> A script for tweaking the configuration
options
-cp,--classpath <path> Aliases for '-classpath'
-D,--define <name=value> define a system property
-d,--debug debug mode will print out full stack traces
--disableopt <optlist> disables one or all optimization elements.
optlist can be a comma separated list with
the elements: all (disables all
optimizations), int (disable any int based
optimizations)
-e <script> specify a command line script
-h,--help usage information
-i <extension> modify files in place; create backup if
extension is given (e.g. '.bak')
--indy enables compilation using invokedynamic
-l <port> listen on a port and process inbound lines
(default: 1960)
-n process files line by line using implicit
'line' variable
-p process files line by line and print result
(see also -n)
-v,--version display the Groovy and JVM versions