Groovy command line arguments (args)
examples/groovy/cli.groovy
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.
Published on 2019-04-16
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
Comment on this post