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
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
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: