Java port of GNU getopt

This looks useful
http://www.urbanophile.com/arenn/hacking/getopt/gnu.getopt.Getopt.html