Skip to content

v1.9.7

Latest
Compare
Choose a tag to compare
@Mqzn Mqzn released this 21 Jul 12:52
· 23 commits to master since this release

Hot patch

  • Improved the handling of InvalidSyntaxException to provide the user with the Closest usage to the wrong usage entered.

  • Allowed NON-STATIC Inner classes to be parsed as subcommands/independent-commands , facilitating the use of @Dependecy

  • Fixed Command.Builder#defaultExecution not working properly

  • 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 is Integer, num2 is Double, text is String.
    and when you TAB complete in the position corresponding to num2.
    it will return the suggestions of num2 argument AND the suggestions of text 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 calling builder#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