YAJOP: yet another Java option parser

Anyone who writes Java programs fairly frequently (or, in my case, often takes CS courses using Java) writes way too much command-line argument parsing code. There are (roughly) two billion different Java packages to deal with the issue of parsing options, varying from the fairly simple to the frighteningly complex. This is my own stab at the problem, written gradually over a period of about a year as my needs dictated. It's strongly on the simplicity side of the fence (the code is entirely contained in a single class, in fact), but it should be flexible enough for the vast majority of cases. A quick 30 second rundown of features:

To see a quick example of using the parser, take a look at the code of my proxy server. The link below provides a self-contained jar of the package you can include in your own application. Source code, test cases, and Javadoc are also available.

Link:Download
Notes:Requires Java 1.5.


Return to program list