Groovy command line arguments (args)

println(args.size()) for (i = 0; i < args.size(); i++) { println(i + ' ' + args[i]) }

Run as groovy cli.groovy hello world "hello world" to see how this works.

timestamp: 2019-04-16T14:30:01 tags:

  • args