blob: 6f5078ce349d5526f81425e70146667af9430d1e [file] [log] [blame]
Cedric Beusta6e4abd2010-10-01 11:42:59 -07001Current
2
Cedric Beust4ba2a3c2011-11-25 09:34:05 -08003Added: Support for delegating parameter definitions to child classes (rodionmoiseev)
Cedric Beust66e78952011-11-23 13:15:16 -08004Added: @Parameter(commandNames) so that command names can be specified with annotations
Cédric Beustf2af8142011-10-23 12:02:09 -07005Added: Support for enums (Adrian Muraru)
Cedric Beust4ba2a3c2011-11-25 09:34:05 -08006Fixed: Throw if an unknown option is found
Cédric Beustf2af8142011-10-23 12:02:09 -07007
81.19
92011/10/10
Cedric Beust8a3f5622011-07-15 10:55:52 -070010Added: commandDescriptionKey to @Parameters, to allow internationalized command descriptions
Cédric Beustcbdb7072011-10-05 23:14:20 -070011Added: JCommander#setParameterDescriptionComparator for better control over usage()
Cedric Beust876c9772011-08-17 11:09:57 -070012Fixed: Fields of type Set (HashSet and SortedSet) are now supported
Cedric Beustdce5bdf2011-08-03 11:04:58 -070013Fixed: defaults for commands were not properly applied (Stevo Slavic)
Cedric Beust2ee07bc2011-07-27 10:32:36 -070014Fixed: "-args=a=b,b=c" was not being parsed correctly (Michael Lancaster)
Cedric Beust4f4ea1f2011-07-14 11:17:16 -070015Fixed: GITHUB-73: descriptionKey was being ignored on main parameters
16
171.18
182011/07/20
19
Cedric Beustdb01fd22011-04-12 13:03:29 -070020Added: Default converter factories can be overridden (Scott Clasen)
Cedric Beust8877f662011-03-10 11:04:38 -080021Added: IParameterValidator
Cedric Beustc199c872011-07-07 13:34:54 -070022Added: Don't display "Options:" if none were defined
23Added: Enforce that the type of the main parameter is a List
24Added: usage() now displays the options for each command as well
Cedric Beustfe8a6962011-06-13 13:35:31 -070025Fixed: Default values with a validator were being validate at parse() time instead of creation time.
Cedric Beust8877f662011-03-10 11:04:38 -080026Fixed: Exception when using an @ file with empty lines between options
Cedric Beustc199c872011-07-07 13:34:54 -070027Fixed: OOM when parsing certain descriptions with long URL's in them
Cedric Beust279af562011-01-24 14:57:44 -080028
291.15
Cedric Beuste2d8da72011-01-24 14:01:29 -0800302011/01/24
31
Cedric Beustfce970e2010-12-23 12:25:49 -080032Added: Added a constructor that takes a Bundle only, https://github.com/cbeust/jcommander/pull/47 (Russell Egan)
Cedric Beuste2d8da72011-01-24 14:01:29 -080033Fixed: NPE with calling getCommandDescription() of an unknown command
Cedric Beust1f4e89c2010-12-23 12:33:45 -080034
351.13
362010/12/15
37
38Added: Boolean parameters with arity 0 (e.g. "foo -debug")
Cedric Beusta6e4abd2010-10-01 11:42:59 -070039Fixed: JCommander would sometimes just print a stack trace and continue, now rethrowing.
40
Cedric Beuste97a6422010-08-31 22:03:35 -0700411.7
Cedric Beust3a32b552010-09-06 07:26:09 -0700422010/09/06
Cedric Beuste97a6422010-08-31 22:03:35 -070043
Cedric Beust4c020da2010-08-31 22:23:52 -070044Added: Command usages are now shown in the order they were added to the JCommander object
Cedric Beust22b8a2f2010-09-06 07:17:37 -070045Fixed: JCommander now compatible with Java 5
Cedric Beuste97a6422010-08-31 22:03:35 -070046Fixed: Minor bug in the command display (Marc Ende)
47
Cedric Beust72cacba2010-08-15 17:23:00 -0700481.6
Cedric Beuste97a6422010-08-31 22:03:35 -0700492010/08/28
Cedric Beust6f6f4362010-07-29 17:18:24 -070050
Cedric Beustdda16512010-08-25 18:54:58 -070051Added: @Parameters(commandDescription = "command description")
Cedric Beust72cacba2010-08-15 17:23:00 -070052Added: now throwing an exception if required main parameters are not supplied
Cedric Beusta76d5b92010-08-16 21:48:14 -070053Fixed: usage() was changing default values after two runs (jstrachan)
Cedric Beust72cacba2010-08-15 17:23:00 -070054
551.5
562010/08/15
57
58Added: overloaded versions of usage() with StringBuilders
59Added: inheritance support (Guillaume Sauthier)
60Added: support for commands (e.g. "main add --author=cbeust Foo.java")
61Added: support for converters for main parameters (e.g. List<HostPort>).
Cedric Beust6f6f4362010-07-29 17:18:24 -070062
Cedric Beustc63fd222010-07-27 11:05:19 -0700631.4
Cedric Beust72cacba2010-08-15 17:23:00 -0700642010/07/28
Cedric Beustc63fd222010-07-27 11:05:19 -070065
Cedric Beustabcd2cb2010-08-15 17:23:30 -070066Added: string converter factories
67Added: IDefaultProvider
68Added: PropertyFileDefaultProvider
69Added: Usage is now showing required parameters and default value
70Added: Support for values that look like parameters ("-integer -3", "/file /tmp/a")
71Added: @Parameters(optionPrefixes) to allow for different prefixes than "-"
Cedric Beustc63fd222010-07-27 11:05:19 -070072
Cedric Beust2a7a6d42010-07-20 22:37:47 -0700731.2
Cedric Beust72cacba2010-08-15 17:23:00 -0700742010/07/25
Cedric Beust2a7a6d42010-07-20 22:37:47 -070075
Cedric Beustb1056412010-07-20 23:11:25 -070076Usage is now aligned and alphabetically sorted
77Added the hidden attribute
Cedric Beustfe9b1e52010-07-23 15:18:22 -070078Added support for different separators than " " (e.g. "=").
79Deprecated @ResourceBundle, replaced with @Parameters
Cedric Beust2a7a6d42010-07-20 22:37:47 -070080
811.1
Cedric Beustfe9b1e52010-07-23 15:18:22 -0700822010/08/15
Cedric Beust2a7a6d42010-07-20 22:37:47 -070083
84Better internationalization
85Password support
86Type converters
87