From time to time, I find myself needing to handle command-line arguments in Java either for Java-based applications or for main() function implementations that provide a simple testing mechanism ...
There are numerous online examples that use Groovy‘s baked-in Apache Commons CLI based command-line parsing support. These examples include Groovy Command Line Options, Chris Mahns‘s Groovy Script: ...