Changes Report

Release History

Version Date Description
1.2 in SVN This is a maintenance release containing bug fixes.
1.1 2007-07-08 This is a maintenance release containing bug fixes.

Release 1.2 - in SVN

Type Changes By
remove Ant build system removed. bayard
fix Incomplete usage documentation about Java property option. Fixes CLI-154 . ebourg
fix TypeHandler prints messages to stderr. Fixes CLI-170 . bayard
fix TypeHandler prints messages to stderr. Fixes CLI-170 . bayard
fix Infinite loop in the wrapping code of HelpFormatter. Fixes CLI-162 . bayard
fix Fixing some minor javadoc issues. sgoeschl
fix The number of arguments defined for an option specifies the arguments per occurrence of the option and not for all occurrences. This was a major regression in CLI 1.1 which prevented the use of repeated options. Fixes CLI-137 . ebourg
add Added a getOptionProperties() method in the CommandLine class to retrieve easily the key/value pairs specified with options like -Dkey1=value1 -Dkey2=value2. ebourg
update GnuParser now supports long options with an '=' sign (ie. --foo=bar and -foo=bar) Fixes CLI-157 . ebourg
fix PosixParser no longer ignores unrecognized short options. Fixes CLI-164 . ebourg
fix PosixParser no longer stops the bursting process of a token if stopAtNonOption is enabled and a non option character is encountered. Fixes CLI-163 . ebourg
fix PosixParser no longer keeps processing the tokens after an unrecognized long option when stopAtNonOption is enabled. Fixes CLI-165 . ebourg
fix Required options are properly checked if an Options instance is used twice to parse a command line. Fixes CLI-156 . ebourg
update The ordering of options can be defined in help messages. Fixes CLI-155 . bayard
fix The line wrapping in HelpFormatter now works properly. Fixes CLI-151 . Thanks to Dan Armbrust. bayard
fix The message of MissingOptionException has been improved. Fixes CLI-149 . bayard
update The exceptions have been enhanced with methods to retrieve easily the related options. Fixes CLI-86 . ebourg
fix Option.toString() now reports arguments properly. Fixes CLI-141 . Thanks to Henning Schmiedehausen, Bjorn Townsend. bayard
update The Parser class has been changed to be more easily extendable. Fixes CLI-142 . Thanks to Henning Schmiedehausen. bayard
update The following classes are now serializable: Option, OptionGroup, CommandLine and Options. Fixes CLI-140 . bayard
remove OptionValidator is no longer public, its methods were all private. ebourg

Release 1.1 - 2007-07-08

Type Changes By
fix Wrong usage summary. Fixes CLI-2 .
fix Dependecy on commons-lang-2.0 but commons-lang-1.0 is obtained. Fixes CLI-5 .
fix Line separator as first char for helpformatter (footer) throws exception. Fixes CLI-8 .
fix CommandLine.getOptionValue() behaves contrary to docs. Fixes CLI-13 .
fix clone method in Option should use super.clone(). Fixes CLI-21 .
fix Passing properties in Parser does not work for options with a single argument. Fixes CLI-23 .
fix Only long options without short option seems to be noticed. Fixes CLI-26 .
fix Infinite Loop in Command-Line processing. Fixes CLI-28 .
fix Options should not be able to be added more than once. Fixes CLI-29 .
fix HelpFormatter doesn't sort options properly. Fixes CLI-35 .
fix HelpFormatter doesn't function correctly for options with only LongOpt. Fixes CLI-38 .
fix Document enhancement. Fixes CLI-44 .
fix Documentation errors. Fixes CLI-45 .
fix Parameter value "-something" misinterpreted as a parameter. Fixes CLI-51 .
fix clone() method doesn't fully clone contents. Fixes CLI-56 .
fix No Javadoc for HelpFormatter!. Fixes CLI-59 .
fix Parser breaks up command line parms into single characters. Fixes CLI-65 .
fix Missing arguments in HelpFormatter.renderOptions(..). Fixes CLI-67 .
fix Error parsing option arguments. Fixes CLI-69 .
fix A weakness of parser. Fixes CLI-71 .
add Setting description of a Option. Fixes CLI-78 .
fix CLI_1_BRANCH build.xml doesn't work. Fixes CLI-129 .
fix Remove the Commons Lang dependency. Fixes CLI-130 .
fix Options class returns options in random order. Fixes CLI-131 .
fix MissingOptionException should contain a useful error message. Fixes CLI-132 .
fix NullPointerException in Util.stripLeadingHyphens when passed a null argument. Fixes CLI-133 .
fix 1.1 is not backwards compatible because it adds methods to the CommandLineParser interface. Fixes CLI-134 .
fix Backwards compatibility between 1.1 and 1.0 broken due to Option.addValue removal. Fixes CLI-135 .