OptionManager supports four types of options: toggles (for instance, -q to turn on "quiet mode"); key/value pairs separated by spaces (such as "-f myfile" to load myfile); key=value pairs (e.g., "user=paul" -- the separating punctuation can be any specified character); and position arguments (such as using the third argument as the target directory). Options can be Integer, Long, Double, Boolean or String. Keys can be case-sensitive or case-insensitive.
A segment from the test program illustrates its use:
Update: I've added some new capabilities (and spruced up the included test program a bit).
Update #2: The utility, which also includes methods to parse file specifications with wildcards and find matching files, is now available from Sourceforge under the name JCLILIB, still under the Apache 2.0 license.