blob: cbff6f60d8dee128ab0c922745ab86c0ee58cc96 [file] [log] [blame]
Cedric Beusta6e4abd2010-10-01 11:42:59 -07001Current
2
Cedric Beuste9032072012-06-10 18:47:55 -07003Added: IValueValidator to validate parameter values (typed) as oppoed to IParameterValidator which validates strings
Cedric Beust11b27d32012-05-30 14:51:50 -07004Added: echoInput, used when password=true to echo the characters (Jason Wheeler)
Cedric Beustc675ef52012-07-04 13:23:31 -07005Added: @Parameter(help = true)
Cedric Beust074b8af2012-05-31 11:51:19 -07006Fixed: wasn't handling parameters that start with " but don't end with one correctly
Cedric Beust9e22cff2012-05-15 14:49:22 -07007Fixed: if using a different option prefix, unknown option are mistakenly reported as "no main parameter defined" (kurmasz)
Cedric Beust13a57cd2012-05-08 15:14:12 -07008Fixed: 113: getCommandDescription() returns the description of the main parameter instead of that of the command
Cedric Beustfb38f402012-05-02 11:52:39 -07009Fixed: bug with several multiple arity parameters (VariableArityTest)
Cedric Beustc84dbd32012-04-29 15:17:05 -070010Fixed: variable arities not working when same parameter appears multiple times.
11
Cedric Beust5f5b78b2012-04-28 17:50:24 -0700121.25
132012/04/26
Cedric Beustd38864b2012-03-15 08:09:11 -070014Added: Default passwords are no longer displayed in the usage (Paul Mendelson)
Cedric Beust8f046522012-04-26 14:00:22 -070015Added: Variable arities now work magically, no need for IVariableArity any more
16Fixed: Commands using @Parameters(resourceBundle) were not i18n'ed properly in the usage()
Cedric Beustca0789b2012-04-18 10:14:48 -070017Fixed: StringIndexOutOfBoundsException if passing an empty parameter (bomanz)
Cedric Beust3506d022012-03-12 14:51:40 -070018Fixed: GITHUB-105: If no description is given for an enum, use that enum's value (Adrian Muraru)
Cedric Beust8ebf58f2012-03-10 16:12:16 -080019Fixed: GITHUB-108: Dynamic parameters with "=" in them are not parsed correctly (szhem)
Cedric Beust8ad02da2012-01-12 13:23:58 -080020Fixed: Commands with same prefix as options were not working properly.
Cedric Beust39e431e2012-02-25 16:43:59 -080021Fixed: GITHUB-97: Required password always complains that it is not specified (timoteoponce)
Cedric Beust8ad02da2012-01-12 13:23:58 -080022
231.23
242012/01/12
25
Cedric Beusta559c602012-01-10 16:49:06 -080026Added: @DynamicParameter
Julien HENRYe45913e2011-11-29 09:40:08 +010027Fixed: Use JDK 6 Console() when available to improve support of non ascii chars (Julien Henry)
28
Cedric Beustaf876df2011-11-25 11:30:06 -0800291.20
302011/11/24
31
Cedric Beust4ba2a3c2011-11-25 09:34:05 -080032Added: Support for delegating parameter definitions to child classes (rodionmoiseev)
Cedric Beust66e78952011-11-23 13:15:16 -080033Added: @Parameter(commandNames) so that command names can be specified with annotations
Cédric Beustf2af8142011-10-23 12:02:09 -070034Added: Support for enums (Adrian Muraru)
Cedric Beust4ba2a3c2011-11-25 09:34:05 -080035Fixed: Throw if an unknown option is found
Cedric Beustc3507eb2011-11-25 10:47:01 -080036Fixed: Main parameters are now validated as well (Connor Mullen)
Cédric Beustf2af8142011-10-23 12:02:09 -070037
381.19
392011/10/10
Cedric Beustaf876df2011-11-25 11:30:06 -080040
Cedric Beust8a3f5622011-07-15 10:55:52 -070041Added: commandDescriptionKey to @Parameters, to allow internationalized command descriptions
Cédric Beustcbdb7072011-10-05 23:14:20 -070042Added: JCommander#setParameterDescriptionComparator for better control over usage()
Cedric Beust876c9772011-08-17 11:09:57 -070043Fixed: Fields of type Set (HashSet and SortedSet) are now supported
Cedric Beustdce5bdf2011-08-03 11:04:58 -070044Fixed: defaults for commands were not properly applied (Stevo Slavic)
Cedric Beust2ee07bc2011-07-27 10:32:36 -070045Fixed: "-args=a=b,b=c" was not being parsed correctly (Michael Lancaster)
Cedric Beust4f4ea1f2011-07-14 11:17:16 -070046Fixed: GITHUB-73: descriptionKey was being ignored on main parameters
47
481.18
492011/07/20
50
Cedric Beustdb01fd22011-04-12 13:03:29 -070051Added: Default converter factories can be overridden (Scott Clasen)
Cedric Beust8877f662011-03-10 11:04:38 -080052Added: IParameterValidator
Cedric Beustc199c872011-07-07 13:34:54 -070053Added: Don't display "Options:" if none were defined
54Added: Enforce that the type of the main parameter is a List
55Added: usage() now displays the options for each command as well
Cedric Beustfe8a6962011-06-13 13:35:31 -070056Fixed: Default values with a validator were being validate at parse() time instead of creation time.
Cedric Beust8877f662011-03-10 11:04:38 -080057Fixed: Exception when using an @ file with empty lines between options
Cedric Beustc199c872011-07-07 13:34:54 -070058Fixed: OOM when parsing certain descriptions with long URL's in them
Cedric Beust279af562011-01-24 14:57:44 -080059
601.15
Cedric Beuste2d8da72011-01-24 14:01:29 -0800612011/01/24
62
Cedric Beustfce970e2010-12-23 12:25:49 -080063Added: Added a constructor that takes a Bundle only, https://github.com/cbeust/jcommander/pull/47 (Russell Egan)
Cedric Beuste2d8da72011-01-24 14:01:29 -080064Fixed: NPE with calling getCommandDescription() of an unknown command
Cedric Beust1f4e89c2010-12-23 12:33:45 -080065
661.13
672010/12/15
68
69Added: Boolean parameters with arity 0 (e.g. "foo -debug")
Cedric Beusta6e4abd2010-10-01 11:42:59 -070070Fixed: JCommander would sometimes just print a stack trace and continue, now rethrowing.
71
Cedric Beuste97a6422010-08-31 22:03:35 -0700721.7
Cedric Beust3a32b552010-09-06 07:26:09 -0700732010/09/06
Cedric Beuste97a6422010-08-31 22:03:35 -070074
Cedric Beust4c020da2010-08-31 22:23:52 -070075Added: Command usages are now shown in the order they were added to the JCommander object
Cedric Beust22b8a2f2010-09-06 07:17:37 -070076Fixed: JCommander now compatible with Java 5
Cedric Beuste97a6422010-08-31 22:03:35 -070077Fixed: Minor bug in the command display (Marc Ende)
78
Cedric Beust72cacba2010-08-15 17:23:00 -0700791.6
Cedric Beuste97a6422010-08-31 22:03:35 -0700802010/08/28
Cedric Beust6f6f4362010-07-29 17:18:24 -070081
Cedric Beustdda16512010-08-25 18:54:58 -070082Added: @Parameters(commandDescription = "command description")
Cedric Beust72cacba2010-08-15 17:23:00 -070083Added: now throwing an exception if required main parameters are not supplied
Cedric Beusta76d5b92010-08-16 21:48:14 -070084Fixed: usage() was changing default values after two runs (jstrachan)
Cedric Beust72cacba2010-08-15 17:23:00 -070085
861.5
872010/08/15
88
89Added: overloaded versions of usage() with StringBuilders
90Added: inheritance support (Guillaume Sauthier)
91Added: support for commands (e.g. "main add --author=cbeust Foo.java")
92Added: support for converters for main parameters (e.g. List<HostPort>).
Cedric Beust6f6f4362010-07-29 17:18:24 -070093
Cedric Beustc63fd222010-07-27 11:05:19 -0700941.4
Cedric Beust72cacba2010-08-15 17:23:00 -0700952010/07/28
Cedric Beustc63fd222010-07-27 11:05:19 -070096
Cedric Beustabcd2cb2010-08-15 17:23:30 -070097Added: string converter factories
98Added: IDefaultProvider
99Added: PropertyFileDefaultProvider
100Added: Usage is now showing required parameters and default value
101Added: Support for values that look like parameters ("-integer -3", "/file /tmp/a")
102Added: @Parameters(optionPrefixes) to allow for different prefixes than "-"
Cedric Beustc63fd222010-07-27 11:05:19 -0700103
Cedric Beust2a7a6d42010-07-20 22:37:47 -07001041.2
Cedric Beust72cacba2010-08-15 17:23:00 -07001052010/07/25
Cedric Beust2a7a6d42010-07-20 22:37:47 -0700106
Cedric Beustb1056412010-07-20 23:11:25 -0700107Usage is now aligned and alphabetically sorted
108Added the hidden attribute
Cedric Beustfe9b1e52010-07-23 15:18:22 -0700109Added support for different separators than " " (e.g. "=").
110Deprecated @ResourceBundle, replaced with @Parameters
Cedric Beust2a7a6d42010-07-20 22:37:47 -0700111
1121.1
Cedric Beustfe9b1e52010-07-23 15:18:22 -07001132010/08/15
Cedric Beust2a7a6d42010-07-20 22:37:47 -0700114
115Better internationalization
116Password support
117Type converters
118