Version 0.0.3
Pre-release
Pre-release
Features
- New Command Template argument types that can be inferred from the field:
File
, giving aFileArgumentType
.String[]
, giving aMultipleStringsArgumentType
.- Array type for all the non-primitive number types (
Integer
,Double
,Byte
, etc). Uses the newMultipleNumbersArgumentType
.
- Improve registering system for infer types. (Now
ArgumentTypeInfer
)- Now accepts function references instead of class types.
- Refactor
TupleArgumentType
so that now it acts as a mapper of strings (argument values) to what a subtype decides to parse to.- Refactor
MultipleStringsArgumentType
andMultipleNumbersArgumentType
to now inherit this class.
- Refactor
- Improve
FileArgumentType
:- Add
mustExist
option. Whentrue
, requires the specified path to exist. - Now possible to specify if the file should be a directory or a regular file.
- Improved the generated description and representation.
- Add
- Change default option chain for
ArgumentParser#parseFromInto
. - Make errors clearer for Command Templates when attempting to instantiate the class fails.
Fixes
- Small optimizations.
FileArgumentType
not behaving as expected.ArgumentTypeInfer#register
allowing to pass no Classes, essentially doing nothing.ArgumentTypeInfer#register
allowing to overwrite previous definitions.- Default version argument showing "Version: null" if no version was defined. Now shows "unknown".
- Synopsis help layout generator appending an extra space character when printing commands.
- Blank string not being detected as no input (
CLInput
).