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 ...
(The below post is brought to you from years of being irritated by other programmers' quirky command line syntax, and my acknowledgement that for many small apps, doing it "right" can take up way too ...