blob: fdc3a1ccd3f3e78408606e259881c0325d9a5794 [file] [log] [blame]
Cedric Beusta6e4abd2010-10-01 11:42:59 -07001Current
2
Cedric Beust2c092c02012-08-01 08:50:32 -07003Added: JCommander#allowAbbreviatedOptions (default: false)
Cedric Beusta8f4de22012-07-31 11:24:27 -07004Added: JCommander#setCaseSensitiveOptions (default: true)
Cedric Beust5f260732012-07-30 22:23:27 -07005Fixed: The description of commands is now displayed on the next line and indented.
Cedric Beuste79760c2012-07-25 14:53:22 -07006Fixed: Empty string defaults now displayed as "<empty string>" in the usage
Cedric Beustf65b1602012-07-17 22:44:09 -07007Fixed: Bugs with the PositiveInteger validator
Cedric Beust94e08e72012-07-17 22:25:26 -07008Fixed: Parameters with a single double quote were not working properly
Cedric Beusta8560682012-07-06 23:25:36 -07009
101.27
111012/08/05
12Added: IValueValidator to validate parameter values (typed) as opposed to IParameterValidator which validates strings
Cedric Beust11b27d32012-05-30 14:51:50 -070013Added: echoInput, used when password=true to echo the characters (Jason Wheeler)
Cedric Beustc675ef52012-07-04 13:23:31 -070014Added: @Parameter(help = true)
Cedric Beust074b8af2012-05-31 11:51:19 -070015Fixed: wasn't handling parameters that start with " but don't end with one correctly
Cedric Beust9e22cff2012-05-15 14:49:22 -070016Fixed: if using a different option prefix, unknown option are mistakenly reported as "no main parameter defined" (kurmasz)
Cedric Beust13a57cd2012-05-08 15:14:12 -070017Fixed: 113: getCommandDescription() returns the description of the main parameter instead of that of the command
Cedric Beustfb38f402012-05-02 11:52:39 -070018Fixed: bug with several multiple arity parameters (VariableArityTest)
Cedric Beustc84dbd32012-04-29 15:17:05 -070019Fixed: variable arities not working when same parameter appears multiple times.
20
Cedric Beust5f5b78b2012-04-28 17:50:24 -0700211.25
222012/04/26
Cedric Beustd38864b2012-03-15 08:09:11 -070023Added: Default passwords are no longer displayed in the usage (Paul Mendelson)
Cedric Beust8f046522012-04-26 14:00:22 -070024Added: Variable arities now work magically, no need for IVariableArity any more
25Fixed: Commands using @Parameters(resourceBundle) were not i18n'ed properly in the usage()
Cedric Beustca0789b2012-04-18 10:14:48 -070026Fixed: StringIndexOutOfBoundsException if passing an empty parameter (bomanz)
Cedric Beust3506d022012-03-12 14:51:40 -070027Fixed: GITHUB-105: If no description is given for an enum, use that enum's value (Adrian Muraru)
Cedric Beust8ebf58f2012-03-10 16:12:16 -080028Fixed: GITHUB-108: Dynamic parameters with "=" in them are not parsed correctly (szhem)
Cedric Beust8ad02da2012-01-12 13:23:58 -080029Fixed: Commands with same prefix as options were not working properly.
Cedric Beust39e431e2012-02-25 16:43:59 -080030Fixed: GITHUB-97: Required password always complains that it is not specified (timoteoponce)
Cedric Beust8ad02da2012-01-12 13:23:58 -080031
321.23
332012/01/12
34
Cedric Beusta559c602012-01-10 16:49:06 -080035Added: @DynamicParameter
Julien HENRYe45913e2011-11-29 09:40:08 +010036Fixed: Use JDK 6 Console() when available to improve support of non ascii chars (Julien Henry)
37
Cedric Beustaf876df2011-11-25 11:30:06 -0800381.20
392011/11/24
40
Cedric Beust4ba2a3c2011-11-25 09:34:05 -080041Added: Support for delegating parameter definitions to child classes (rodionmoiseev)
Cedric Beust66e78952011-11-23 13:15:16 -080042Added: @Parameter(commandNames) so that command names can be specified with annotations
Cédric Beustf2af8142011-10-23 12:02:09 -070043Added: Support for enums (Adrian Muraru)
Cedric Beust4ba2a3c2011-11-25 09:34:05 -080044Fixed: Throw if an unknown option is found
Cedric Beustc3507eb2011-11-25 10:47:01 -080045Fixed: Main parameters are now validated as well (Connor Mullen)
Cédric Beustf2af8142011-10-23 12:02:09 -070046
471.19
482011/10/10
Cedric Beustaf876df2011-11-25 11:30:06 -080049
Cedric Beust8a3f5622011-07-15 10:55:52 -070050Added: commandDescriptionKey to @Parameters, to allow internationalized command descriptions
Cédric Beustcbdb7072011-10-05 23:14:20 -070051Added: JCommander#setParameterDescriptionComparator for better control over usage()
Cedric Beust876c9772011-08-17 11:09:57 -070052Fixed: Fields of type Set (HashSet and SortedSet) are now supported
Cedric Beustdce5bdf2011-08-03 11:04:58 -070053Fixed: defaults for commands were not properly applied (Stevo Slavic)
Cedric Beust2ee07bc2011-07-27 10:32:36 -070054Fixed: "-args=a=b,b=c" was not being parsed correctly (Michael Lancaster)
Cedric Beust4f4ea1f2011-07-14 11:17:16 -070055Fixed: GITHUB-73: descriptionKey was being ignored on main parameters
56
571.18
582011/07/20
59
Cedric Beustdb01fd22011-04-12 13:03:29 -070060Added: Default converter factories can be overridden (Scott Clasen)
Cedric Beust8877f662011-03-10 11:04:38 -080061Added: IParameterValidator
Cedric Beustc199c872011-07-07 13:34:54 -070062Added: Don't display "Options:" if none were defined
63Added: Enforce that the type of the main parameter is a List
64Added: usage() now displays the options for each command as well
Cedric Beustfe8a6962011-06-13 13:35:31 -070065Fixed: Default values with a validator were being validate at parse() time instead of creation time.
Cedric Beust8877f662011-03-10 11:04:38 -080066Fixed: Exception when using an @ file with empty lines between options
Cedric Beustc199c872011-07-07 13:34:54 -070067Fixed: OOM when parsing certain descriptions with long URL's in them
Cedric Beust279af562011-01-24 14:57:44 -080068
691.15
Cedric Beuste2d8da72011-01-24 14:01:29 -0800702011/01/24
71
Cedric Beustfce970e2010-12-23 12:25:49 -080072Added: Added a constructor that takes a Bundle only, https://github.com/cbeust/jcommander/pull/47 (Russell Egan)
Cedric Beuste2d8da72011-01-24 14:01:29 -080073Fixed: NPE with calling getCommandDescription() of an unknown command
Cedric Beust1f4e89c2010-12-23 12:33:45 -080074
751.13
762010/12/15
77
78Added: Boolean parameters with arity 0 (e.g. "foo -debug")
Cedric Beusta6e4abd2010-10-01 11:42:59 -070079Fixed: JCommander would sometimes just print a stack trace and continue, now rethrowing.
80
Cedric Beuste97a6422010-08-31 22:03:35 -0700811.7
Cedric Beust3a32b552010-09-06 07:26:09 -0700822010/09/06
Cedric Beuste97a6422010-08-31 22:03:35 -070083
Cedric Beust4c020da2010-08-31 22:23:52 -070084Added: Command usages are now shown in the order they were added to the JCommander object
Cedric Beust22b8a2f2010-09-06 07:17:37 -070085Fixed: JCommander now compatible with Java 5
Cedric Beuste97a6422010-08-31 22:03:35 -070086Fixed: Minor bug in the command display (Marc Ende)
87
Cedric Beust72cacba2010-08-15 17:23:00 -0700881.6
Cedric Beuste97a6422010-08-31 22:03:35 -0700892010/08/28
Cedric Beust6f6f4362010-07-29 17:18:24 -070090
Cedric Beustdda16512010-08-25 18:54:58 -070091Added: @Parameters(commandDescription = "command description")
Cedric Beust72cacba2010-08-15 17:23:00 -070092Added: now throwing an exception if required main parameters are not supplied
Cedric Beusta76d5b92010-08-16 21:48:14 -070093Fixed: usage() was changing default values after two runs (jstrachan)
Cedric Beust72cacba2010-08-15 17:23:00 -070094
951.5
962010/08/15
97
98Added: overloaded versions of usage() with StringBuilders
99Added: inheritance support (Guillaume Sauthier)
100Added: support for commands (e.g. "main add --author=cbeust Foo.java")
101Added: support for converters for main parameters (e.g. List<HostPort>).
Cedric Beust6f6f4362010-07-29 17:18:24 -0700102
Cedric Beustc63fd222010-07-27 11:05:19 -07001031.4
Cedric Beust72cacba2010-08-15 17:23:00 -07001042010/07/28
Cedric Beustc63fd222010-07-27 11:05:19 -0700105
Cedric Beustabcd2cb2010-08-15 17:23:30 -0700106Added: string converter factories
107Added: IDefaultProvider
108Added: PropertyFileDefaultProvider
109Added: Usage is now showing required parameters and default value
110Added: Support for values that look like parameters ("-integer -3", "/file /tmp/a")
111Added: @Parameters(optionPrefixes) to allow for different prefixes than "-"
Cedric Beustc63fd222010-07-27 11:05:19 -0700112
Cedric Beust2a7a6d42010-07-20 22:37:47 -07001131.2
Cedric Beust72cacba2010-08-15 17:23:00 -07001142010/07/25
Cedric Beust2a7a6d42010-07-20 22:37:47 -0700115
Cedric Beustb1056412010-07-20 23:11:25 -0700116Usage is now aligned and alphabetically sorted
117Added the hidden attribute
Cedric Beustfe9b1e52010-07-23 15:18:22 -0700118Added support for different separators than " " (e.g. "=").
119Deprecated @ResourceBundle, replaced with @Parameters
Cedric Beust2a7a6d42010-07-20 22:37:47 -0700120
1211.1
Cedric Beustfe9b1e52010-07-23 15:18:22 -07001222010/08/15
Cedric Beust2a7a6d42010-07-20 22:37:47 -0700123
124Better internationalization
125Password support
126Type converters
127