1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
v2.0a (July 23, 2005)
* Fixed an embarrassing bug that resulted in unexpected characters
in auto-generated help output.
* Fixed bugs in FileStringParser that prevented enforcement of
mustExist(), mustBeFile(), and mustBeDirectory()
v2.0 (June 21, 2005)
* Fixed setHelp() methods to return a reference to "this", consistent
with other setters.
* New layout for option help to avoid problems with excessively long
option descriptions
* Added constructors with built-in help text setters.
* Added SimpleJSAP class to speed up common configurations.
* Added unbreakable spaces between flags and arguments in auto-generated
usage text.
* Added IntSizeStringParser and LongSizeStringParser to allow numeric
parameters with SI suffixes (e.g., "10K" returns an Integer or Long
with value 10,000. Currently supported suffixes include K, M, G, T,
P, Ki, Mi, Gi, Ti, Pi.
* Added ForNameStringParser that takes a class name and returns an object
constructed via class.forName().
* Added singleton instances of most StringParsers to avoid unnecessary
object creation. Singletons are available as public static fields of
JSAP, e.g., JSAP.BIG_DECIMAL_PARSER.
* Default values for parameters are now indicated in auto-generated help.
* Added no-space short options, a la GNU getopt. "-b5" is equivalent to
"-b 5"
* Several minor bugfixes and documentation corrections.
* Added JSAPResult.contains(String id) to determine if the result contains
any values at all (including default values) for the specified parameter.
* Added JSAPResult.userSpecified(String id) to determine if the result
contains a USER-SPECIFIED value (i.e., not including default values)
for the specified parameter.
* Added XML support for JSAP configuration (experimental).
* Brought JIRA bug tracker online at http://jira.martiansoftware.com.
|