background preloader

Tools

Facebook Twitter

Software

Web2.0. Prototyping. JSOS - servlets office suite. JSAP: the Java-based Simple Argument Parser. Last Updated August 4, 2006 Why do we need another command line parser?

JSAP: the Java-based Simple Argument Parser

Put simply, I got tired of writing simple command line parsers for every java utility program I wrote. I would usually just throw together something simple, requiring a certain number of arguments and deciding that args[0] would always mean, say, an input file, and args[1] would be an output file. It was fine for simpler utilities with just a few parameters, but it didn't handle switches - and if I wanted anything other than a String from the command line, I had to write that parsing into the program, too.