Skip to content

Version 0.1.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@darvil82 darvil82 released this 06 Nov 01:00
· 559 commits to main since this release
2413530

Features

  • Add TextFormatter#removeFormat.
  • Tokenizing process now may push multiple errors (instead of being limited to just one)
  • Improved displaying of tokenizer errors.
  • Add Argument.PrefixChar#COMMON_PREFIXES. This is an array of prefixes that a user will normally be familiar with.
  • Add parse error for when unmatched extra values are present in an argument name list.
  • Updated unmatched token error to be clearer.
  • Add an info level error for when a token has a correct argument name, but with an incorrect prefix.
  • Made argument name list checking more permissive by being less strict with which prefixes you can use. Now also checks if the prefix used is any in Argument.PrefixChar#COMMON_PREFIXES.

Fixes

  • Argument.Define.prefix now uses Argument.PrefixChar.defaultPrefix by default, instead of just '-'.
  • Terminal sequences being reset on some terminals after a newline is shown.
  • Slight optimization in ErrorsContainerImpl.
  • Slight optimization in ModifyRecord.
  • Argument onCorrect callbacks not executing when other arguments with allowUnique are present and used.
  • Incorrect usage count errors appearing for each usage. Now just appearing once, at final parsing of the argument.
  • Possibility to set no names on arguments/commands.
  • ArgumentType#addError throwing IllegalStateException instead of ArgumentTypeException.
  • UtlReflection#instantiate not properly forwarding the arguments supplied to the ctor.
  • Incorrect value numbers errors not highlighting tokens correctly.
  • Parse errors added by parsing of argument name lists not properly highlighting tokens.
  • Incorrect number of values shown on a specific incorrect value number error case.
  • Parsing:
    • Token being skipped from input in a case when parsing argument name lists.
    • Strings not behaving properly when placed right after another value.
    • Input incorrectly tokenized as a name list in some cases.
    • Parsing occurring even if tokenizing process failed.
  • Error decorations not being properly adapted with text on a lower line width limit.