The main in groovy.
When run as :
With the groovy executable in the bin directory
groovy helloWorld.groovy "Nico"
println "Hello "+args[0]
Hello Nico