JSAP (Java Simple Argument Parser) not only syntactically validates your program's commandline arguments, but it converts those arguments into objects you specify. There's a pretty big (and growing) list of return types suppored by JSAP, including Integers, Floats, Dates, URLs, and even java.awt.Colors; you can also add your own in a matter of minutes. Cascading configuration files can provide arguments not supplied at the command line, and a custom ANT task is included to generate a JSAP class based on your commandline configuration.
| Tags | Software Development Libraries Java Libraries |
|---|---|
| Licenses | BSD Original LGPL |
| Operating Systems | OS Independent |
| Implementation | Java |
Recent releases


Release Notes: This is a long overdue bugfix release. The JRE 1.5 dependency has been removed (it works with 1.4 again). "-" and "--" can be supplied as unflagged option values. "-v=value" syntax parsing has been fixed. A QualifiedSwitch bug that resulted in an exception when no value was specified is fixed. getUsageName() is fixed for FlaggedOptions. unregisterParameter() now works for switches.


Release Notes: An embarrassing bug that resulted in unexpected characters in auto-generated help output was fixed. Bugs in FileStringParser that prevented enforcement of mustExist(), mustBeFile(), and mustBeDirectory() were fixed.


Release Notes: A new layout for option help was added to avoid problems with long option descriptions. The SimpleJSAP class was added to speed up common configurations. StringParsers were added. Singletons of most StringParsers were added to avoid unnecessary object creation. Default values for parameters are now indicated in auto-generated help. No-space short options, a la GNU getopt, were added ("-b5" == "-b 5"). A means to determine whether a value was specified by a user or obtained by default was added. Experimental XML support for JSAP configuration was added. Several minor bugfixes and documentation corrections were made.


Release Notes: A brown-paper-bag bug in the build script that resulted in broken documentation has been fixed A NullPointerException that could arise in the generation of help text has been fixed.


Release Notes: Changes include a new switch type (QualifiedSwitch), new StringParsers, dramatically improved documentation, many minor tweaks, and a license change to LGPL (with a clarification making unmodified binary inclusion/redistribution safe for your projects).