0.9.7 - Bugfix and enhancements release for public review. API may change.
Issues Closed
- #127 Added support for nested sub-subcommands
- #135 API change: renamed static convenience method
CommandLine::parse
topopulateCommand
- #134 API change:
CommandLine::parse
now returnsList<CommandLine>
(wasList<Object>
) - #133 API change:
CommandLine::getCommands
now returnsMap<String, CommandLine>
(wasMap<String, Object>
) - #133 API change: Added method
CommandLine::getCommand
- #136 API change: renamed method
CommandLine::addCommand
toaddSubcommand
; - #136 API change: renamed method
CommandLine::getCommands
togetSubcommands
- #131 API change: Renamed class
Arity
toRange
- #137 Improve validation: disallow index gap in @parameters annotations
- #132 Improve validation: parsing should fail when unmatched arguments remain
- #138 Improve validation: disallow option overwriting by default
- #129 Make "allow option overwriting" configurable
- #140 Make "allow unmatched arguments" configurable
- #139 Improve validation: CommandLine must be constructed with a command that has at least one of @command, @option or @parameters annotation
- #141 Bugfix: prevent NullPointerException when sorting required options/parameters