Building CLIAR — A simple drop-in Java class for parsing command-line arguments (Part 2)
java
dev.to
Welcome to the second part of my rolling blog, where I start building CLIAR from the ground up-starting with the simplest possible parser—and see where it breaks. You can find the first part here and current snapshots of the code on my GitHub page. Getting started with Short Options To keep the interface simple, we start with a factory method: public static Cliar from(String[] args) { ... } With that in place, we can begin parsing the simplest possible arguments: single-ch