1 Current 2 3 1.30 4 2012/10/27 5 6 Added: JCommander#acceptUnknownOption and JCommander#getUnknownArgs 7 Added: JCommander#allowAbbreviatedOptions (default: false) 8 Added: JCommander#setCaseSensitiveOptions (default: true) 9 Added: Support for enums (Scott M Stark) 10 Fixed: Missing new lines in usage (styurin) 11 Fixed: The description of commands is now displayed on the next line and indented. 12 13 1.29 14 2012/07/28 15 16 Fixed: Empty string defaults now displayed as "<empty string>" in the usage 17 Fixed: Bugs with the PositiveInteger validator 18 Fixed: Parameters with a single double quote were not working properly 19 20 1.27 21 2012/07/05 22 23 Added: IValueValidator to validate parameter values (typed) as opposed to IParameterValidator which validates strings 24 Added: echoInput, used when password=true to echo the characters (Jason Wheeler) 25 Added: @Parameter(help = true) 26 Fixed: wasn't handling parameters that start with " but don't end with one correctly 27 Fixed: if using a different option prefix, unknown option are mistakenly reported as "no main parameter defined" (kurmasz) 28 Fixed: 113: getCommandDescription() returns the description of the main parameter instead of that of the command 29 Fixed: bug with several multiple arity parameters (VariableArityTest) 30 Fixed: variable arities not working when same parameter appears multiple times. 31 32 1.25 33 2012/04/26 34 35 Added: Default passwords are no longer displayed in the usage (Paul Mendelson) 36 Added: Variable arities now work magically, no need for IVariableArity any more 37 Fixed: Commands using @Parameters(resourceBundle) were not i18n'ed properly in the usage() 38 Fixed: StringIndexOutOfBoundsException if passing an empty parameter (bomanz) 39 Fixed: GITHUB-105: If no description is given for an enum, use that enum's value (Adrian Muraru) 40 Fixed: GITHUB-108: Dynamic parameters with "=" in them are not parsed correctly (szhem) 41 Fixed: Commands with same prefix as options were not working properly. 42 Fixed: GITHUB-97: Required password always complains that it is not specified (timoteoponce) 43 44 1.23 45 2012/01/12 46 47 Added: @DynamicParameter 48 Fixed: Use JDK 6 Console() when available to improve support of non ascii chars (Julien Henry) 49 50 1.20 51 2011/11/24 52 53 Added: Support for delegating parameter definitions to child classes (rodionmoiseev) 54 Added: @Parameter(commandNames) so that command names can be specified with annotations 55 Added: Support for enums (Adrian Muraru) 56 Fixed: Throw if an unknown option is found 57 Fixed: Main parameters are now validated as well (Connor Mullen) 58 59 1.19 60 2011/10/10 61 62 Added: commandDescriptionKey to @Parameters, to allow internationalized command descriptions 63 Added: JCommander#setParameterDescriptionComparator for better control over usage() 64 Fixed: Fields of type Set (HashSet and SortedSet) are now supported 65 Fixed: defaults for commands were not properly applied (Stevo Slavic) 66 Fixed: "-args=a=b,b=c" was not being parsed correctly (Michael Lancaster) 67 Fixed: GITHUB-73: descriptionKey was being ignored on main parameters 68 69 1.18 70 2011/07/20 71 72 Added: Default converter factories can be overridden (Scott Clasen) 73 Added: IParameterValidator 74 Added: Don't display "Options:" if none were defined 75 Added: Enforce that the type of the main parameter is a List 76 Added: usage() now displays the options for each command as well 77 Fixed: Default values with a validator were being validate at parse() time instead of creation time. 78 Fixed: Exception when using an @ file with empty lines between options 79 Fixed: OOM when parsing certain descriptions with long URL's in them 80 81 1.15 82 2011/01/24 83 84 Added: Added a constructor that takes a Bundle only, https://github.com/cbeust/jcommander/pull/47 (Russell Egan) 85 Fixed: NPE with calling getCommandDescription() of an unknown command 86 87 1.13 88 2010/12/15 89 90 Added: Boolean parameters with arity 0 (e.g. "foo -debug") 91 Fixed: JCommander would sometimes just print a stack trace and continue, now rethrowing. 92 93 1.7 94 2010/09/06 95 96 Added: Command usages are now shown in the order they were added to the JCommander object 97 Fixed: JCommander now compatible with Java 5 98 Fixed: Minor bug in the command display (Marc Ende) 99 100 1.6 101 2010/08/28 102 103 Added: @Parameters(commandDescription = "command description") 104 Added: now throwing an exception if required main parameters are not supplied 105 Fixed: usage() was changing default values after two runs (jstrachan) 106 107 1.5 108 2010/08/15 109 110 Added: overloaded versions of usage() with StringBuilders 111 Added: inheritance support (Guillaume Sauthier) 112 Added: support for commands (e.g. "main add --author=cbeust Foo.java") 113 Added: support for converters for main parameters (e.g. List<HostPort>). 114 115 1.4 116 2010/07/28 117 118 Added: string converter factories 119 Added: IDefaultProvider 120 Added: PropertyFileDefaultProvider 121 Added: Usage is now showing required parameters and default value 122 Added: Support for values that look like parameters ("-integer -3", "/file /tmp/a") 123 Added: @Parameters(optionPrefixes) to allow for different prefixes than "-" 124 125 1.2 126 2010/07/25 127 128 Usage is now aligned and alphabetically sorted 129 Added the hidden attribute 130 Added support for different separators than " " (e.g. "="). 131 Deprecated @ResourceBundle, replaced with @Parameters 132 133 1.1 134 2010/08/15 135 136 Better internationalization 137 Password support 138 Type converters 139 140