Hot patch
-
Improved the handling of
InvalidSyntaxException
to provide the user with theClosest usage
to the wrong usage entered. -
Allowed NON-STATIC Inner classes to be parsed as subcommands/independent-commands , facilitating the use of
@Dependecy
-
Changed the default suggestion resolver of parameters to return an empty list instead of returning the parameter's format.
-
Improved the accuracy of Optional argument's resolving.
-
Added optional parameter overlap in tab-completion as an option instead of being there forcibly by default.
Example:
When you have a command usage of/test <num1> [num2] [text]
, where num1 isInteger
, num2 isDouble
, text isString
.
and when you TAB complete in the position corresponding tonum2
.
it will return the suggestions ofnum2
argument AND the suggestions oftext
argument,
IF the optional argument suggestions overlap is TRUE, other wise it will only return the suggestions of num2 argument.
You can toggle the overlap option through your builder by callingbuilder#overlapOptionalParameterSuggestions(boolean overlap)
N.B: for overlap to occur it requires the current arg and the next arg to be optional, in addition to both args being of DIFFERENT TYPE.
( the overlap option must also be set to true; its false by default )
Full Changelog: v1.9.6...v1.9.7