blob: dec8ca6e852807fbe559f174d5ee78175ef258f8 [file] [log] [blame]
Cedric Beusta6e4abd2010-10-01 11:42:59 -07001Current
2
Cedric Beustd38864b2012-03-15 08:09:11 -07003Added: Default passwords are no longer displayed in the usage (Paul Mendelson)
Cedric Beust8f046522012-04-26 14:00:22 -07004Added: Variable arities now work magically, no need for IVariableArity any more
5Fixed: Commands using @Parameters(resourceBundle) were not i18n'ed properly in the usage()
Cedric Beustca0789b2012-04-18 10:14:48 -07006Fixed: StringIndexOutOfBoundsException if passing an empty parameter (bomanz)
Cedric Beust3506d022012-03-12 14:51:40 -07007Fixed: GITHUB-105: If no description is given for an enum, use that enum's value (Adrian Muraru)
Cedric Beust8ebf58f2012-03-10 16:12:16 -08008Fixed: GITHUB-108: Dynamic parameters with "=" in them are not parsed correctly (szhem)
Cedric Beust8ad02da2012-01-12 13:23:58 -08009Fixed: Commands with same prefix as options were not working properly.
Cedric Beust39e431e2012-02-25 16:43:59 -080010Fixed: GITHUB-97: Required password always complains that it is not specified (timoteoponce)
Cedric Beust8ad02da2012-01-12 13:23:58 -080011
121.23
132012/01/12
14
Cedric Beusta559c602012-01-10 16:49:06 -080015Added: @DynamicParameter
Julien HENRYe45913e2011-11-29 09:40:08 +010016Fixed: Use JDK 6 Console() when available to improve support of non ascii chars (Julien Henry)
17
Cedric Beustaf876df2011-11-25 11:30:06 -0800181.20
192011/11/24
20
Cedric Beust4ba2a3c2011-11-25 09:34:05 -080021Added: Support for delegating parameter definitions to child classes (rodionmoiseev)
Cedric Beust66e78952011-11-23 13:15:16 -080022Added: @Parameter(commandNames) so that command names can be specified with annotations
Cédric Beustf2af8142011-10-23 12:02:09 -070023Added: Support for enums (Adrian Muraru)
Cedric Beust4ba2a3c2011-11-25 09:34:05 -080024Fixed: Throw if an unknown option is found
Cedric Beustc3507eb2011-11-25 10:47:01 -080025Fixed: Main parameters are now validated as well (Connor Mullen)
Cédric Beustf2af8142011-10-23 12:02:09 -070026
271.19
282011/10/10
Cedric Beustaf876df2011-11-25 11:30:06 -080029
Cedric Beust8a3f5622011-07-15 10:55:52 -070030Added: commandDescriptionKey to @Parameters, to allow internationalized command descriptions
Cédric Beustcbdb7072011-10-05 23:14:20 -070031Added: JCommander#setParameterDescriptionComparator for better control over usage()
Cedric Beust876c9772011-08-17 11:09:57 -070032Fixed: Fields of type Set (HashSet and SortedSet) are now supported
Cedric Beustdce5bdf2011-08-03 11:04:58 -070033Fixed: defaults for commands were not properly applied (Stevo Slavic)
Cedric Beust2ee07bc2011-07-27 10:32:36 -070034Fixed: "-args=a=b,b=c" was not being parsed correctly (Michael Lancaster)
Cedric Beust4f4ea1f2011-07-14 11:17:16 -070035Fixed: GITHUB-73: descriptionKey was being ignored on main parameters
36
371.18
382011/07/20
39
Cedric Beustdb01fd22011-04-12 13:03:29 -070040Added: Default converter factories can be overridden (Scott Clasen)
Cedric Beust8877f662011-03-10 11:04:38 -080041Added: IParameterValidator
Cedric Beustc199c872011-07-07 13:34:54 -070042Added: Don't display "Options:" if none were defined
43Added: Enforce that the type of the main parameter is a List
44Added: usage() now displays the options for each command as well
Cedric Beustfe8a6962011-06-13 13:35:31 -070045Fixed: Default values with a validator were being validate at parse() time instead of creation time.
Cedric Beust8877f662011-03-10 11:04:38 -080046Fixed: Exception when using an @ file with empty lines between options
Cedric Beustc199c872011-07-07 13:34:54 -070047Fixed: OOM when parsing certain descriptions with long URL's in them
Cedric Beust279af562011-01-24 14:57:44 -080048
491.15
Cedric Beuste2d8da72011-01-24 14:01:29 -0800502011/01/24
51
Cedric Beustfce970e2010-12-23 12:25:49 -080052Added: Added a constructor that takes a Bundle only, https://github.com/cbeust/jcommander/pull/47 (Russell Egan)
Cedric Beuste2d8da72011-01-24 14:01:29 -080053Fixed: NPE with calling getCommandDescription() of an unknown command
Cedric Beust1f4e89c2010-12-23 12:33:45 -080054
551.13
562010/12/15
57
58Added: Boolean parameters with arity 0 (e.g. "foo -debug")
Cedric Beusta6e4abd2010-10-01 11:42:59 -070059Fixed: JCommander would sometimes just print a stack trace and continue, now rethrowing.
60
Cedric Beuste97a6422010-08-31 22:03:35 -0700611.7
Cedric Beust3a32b552010-09-06 07:26:09 -0700622010/09/06
Cedric Beuste97a6422010-08-31 22:03:35 -070063
Cedric Beust4c020da2010-08-31 22:23:52 -070064Added: Command usages are now shown in the order they were added to the JCommander object
Cedric Beust22b8a2f2010-09-06 07:17:37 -070065Fixed: JCommander now compatible with Java 5
Cedric Beuste97a6422010-08-31 22:03:35 -070066Fixed: Minor bug in the command display (Marc Ende)
67
Cedric Beust72cacba2010-08-15 17:23:00 -0700681.6
Cedric Beuste97a6422010-08-31 22:03:35 -0700692010/08/28
Cedric Beust6f6f4362010-07-29 17:18:24 -070070
Cedric Beustdda16512010-08-25 18:54:58 -070071Added: @Parameters(commandDescription = "command description")
Cedric Beust72cacba2010-08-15 17:23:00 -070072Added: now throwing an exception if required main parameters are not supplied
Cedric Beusta76d5b92010-08-16 21:48:14 -070073Fixed: usage() was changing default values after two runs (jstrachan)
Cedric Beust72cacba2010-08-15 17:23:00 -070074
751.5
762010/08/15
77
78Added: overloaded versions of usage() with StringBuilders
79Added: inheritance support (Guillaume Sauthier)
80Added: support for commands (e.g. "main add --author=cbeust Foo.java")
81Added: support for converters for main parameters (e.g. List<HostPort>).
Cedric Beust6f6f4362010-07-29 17:18:24 -070082
Cedric Beustc63fd222010-07-27 11:05:19 -0700831.4
Cedric Beust72cacba2010-08-15 17:23:00 -0700842010/07/28
Cedric Beustc63fd222010-07-27 11:05:19 -070085
Cedric Beustabcd2cb2010-08-15 17:23:30 -070086Added: string converter factories
87Added: IDefaultProvider
88Added: PropertyFileDefaultProvider
89Added: Usage is now showing required parameters and default value
90Added: Support for values that look like parameters ("-integer -3", "/file /tmp/a")
91Added: @Parameters(optionPrefixes) to allow for different prefixes than "-"
Cedric Beustc63fd222010-07-27 11:05:19 -070092
Cedric Beust2a7a6d42010-07-20 22:37:47 -0700931.2
Cedric Beust72cacba2010-08-15 17:23:00 -0700942010/07/25
Cedric Beust2a7a6d42010-07-20 22:37:47 -070095
Cedric Beustb1056412010-07-20 23:11:25 -070096Usage is now aligned and alphabetically sorted
97Added the hidden attribute
Cedric Beustfe9b1e52010-07-23 15:18:22 -070098Added support for different separators than " " (e.g. "=").
99Deprecated @ResourceBundle, replaced with @Parameters
Cedric Beust2a7a6d42010-07-20 22:37:47 -0700100
1011.1
Cedric Beustfe9b1e52010-07-23 15:18:22 -07001022010/08/15
Cedric Beust2a7a6d42010-07-20 22:37:47 -0700103
104Better internationalization
105Password support
106Type converters
107