Java Command-Line Interfaces (Part 9): parse-cmd

The parse-cmd library consists of a single class, ParseCmd.java , that is "a Java-class used to define and parse command-line parameters in a Java application." The library is hosted on Google Code Archive and so could go away at any time . The JAR also appears to be available on GitHub . This post covers use of parse-cmd 0.0.93 to process command line arguments in Java. The parse-cmd Requirement Wiki lists several alternatives for processing command line arguments in Java, including some which have been covered previously in this series. After listing these alternatives, it states, "Reviewing these and other entries, it was time to try another parser." The document then goes on to delineate requirements that parse-cmd seeks to satisfy. The "definition" stage of parsing command-line arguments with parse-cmd is demonstrated in the next (incomplete) code listing. [Note that the example in this post is similar to that used in the previous eight posts ...