Changes Report

Release History

VersionDateDescription
1.22009-03-19This is a maintenance release containing bug fixes.
1.12007-07-08This is a maintenance release containing bug fixes.


Release 1.2 - 2009-03-19

TypeChangesBy
fixTest class BugCLI162Test fails under Windows Fixes CLI-175.oheger
fixOptionBuilder is not reseted in case of an IAE at create. Fixes CLI-177.joehni
removeAnt build system removed.bayard
fixIncomplete usage documentation about Java property option. Fixes CLI-154.ebourg
fixTypeHandler prints messages to stderr. Fixes CLI-170.bayard
fixTypeHandler prints messages to stderr. Fixes CLI-170.bayard
fixInfinite loop in the wrapping code of HelpFormatter. Fixes CLI-162.bayard
fixFixing some minor javadoc issues.sgoeschl
fixThe 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
addAdded a getOptionProperties() method in the CommandLine class to retrieve easily the key/value pairs specified with options like -Dkey1=value1 -Dkey2=value2.ebourg
updateGnuParser now supports long options with an '=' sign (ie. --foo=bar and -foo=bar) Fixes CLI-157.ebourg
fixPosixParser no longer ignores unrecognized short options. Fixes CLI-164.ebourg
fixPosixParser no longer stops the bursting process of a token if stopAtNonOption is enabled and a non option character is encountered. Fixes CLI-163.ebourg
fixPosixParser no longer keeps processing the tokens after an unrecognized long option when stopAtNonOption is enabled. Fixes CLI-165.ebourg
fixRequired options are properly checked if an Options instance is used twice to parse a command line. Fixes CLI-156.ebourg
updateThe ordering of options can be defined in help messages. Fixes CLI-155.bayard
fixThe line wrapping in HelpFormatter now works properly. This caused CLI-162, and thus there was a feature change for the HelpFormatter in that it is strict on width now rather than what seemed to be lenience before. Text without whitespace will be cut off to fit in the spacing, and an IllegalStateException will be thrown if it is impossible to output the information due to spacing constraints. Fixes CLI-151. Thanks to Dan Armbrust.bayard
fixThe message of MissingOptionException has been improved. Fixes CLI-149.bayard
updateThe exceptions have been enhanced with methods to retrieve easily the related options. Fixes CLI-86.ebourg
fixOption.toString() now reports arguments properly. Fixes CLI-141. Thanks to Henning Schmiedehausen, Bjorn Townsend.bayard
updateThe Parser class has been changed to be more easily extendable. Fixes CLI-142. Thanks to Henning Schmiedehausen.bayard
updateThe following classes are now serializable: Option, OptionGroup, CommandLine and Options. Fixes CLI-140.bayard
removeOptionValidator is no longer public, its methods were all private.ebourg

Release 1.1 - 2007-07-08

TypeChangesBy
fixWrong usage summary. Fixes CLI-2.
fixDependecy on commons-lang-2.0 but commons-lang-1.0 is obtained. Fixes CLI-5.
fixLine separator as first char for helpformatter (footer) throws exception. Fixes CLI-8.
fixCommandLine.getOptionValue() behaves contrary to docs. Fixes CLI-13.
fixclone method in Option should use super.clone(). Fixes CLI-21.
fixPassing properties in Parser does not work for options with a single argument. Fixes CLI-23.
fixOnly long options without short option seems to be noticed. Fixes CLI-26.
fixInfinite Loop in Command-Line processing. Fixes CLI-28.
fixOptions should not be able to be added more than once. Fixes CLI-29.
fixHelpFormatter doesn't sort options properly. Fixes CLI-35.
fixHelpFormatter doesn't function correctly for options with only LongOpt. Fixes CLI-38.
fixDocument enhancement. Fixes CLI-44.
fixDocumentation errors. Fixes CLI-45.
fixParameter value "-something" misinterpreted as a parameter. Fixes CLI-51.
fixclone() method doesn't fully clone contents. Fixes CLI-56.
fixNo Javadoc for HelpFormatter!. Fixes CLI-59.
fixParser breaks up command line parms into single characters. Fixes CLI-65.
fixMissing arguments in HelpFormatter.renderOptions(..). Fixes CLI-67.
fixError parsing option arguments. Fixes CLI-69.
fixA weakness of parser. Fixes CLI-71.
addSetting description of a Option. Fixes CLI-78.
fixCLI_1_BRANCH build.xml doesn't work. Fixes CLI-129.
fixRemove the Commons Lang dependency. Fixes CLI-130.
fixOptions class returns options in random order. Fixes CLI-131.
fixMissingOptionException should contain a useful error message. Fixes CLI-132.
fixNullPointerException in Util.stripLeadingHyphens when passed a null argument. Fixes CLI-133.
fix1.1 is not backwards compatible because it adds methods to the CommandLineParser interface. Fixes CLI-134.
fixBackwards compatibility between 1.1 and 1.0 broken due to Option.addValue removal. Fixes CLI-135.