Argument parsing changed from a word-based solution to a char-based one. This gives Arguments access to the
previously omitted whitespace characters and allows the creation of Arguments who might not perfectly conform to
words. The utility SingleWordArgument, FixedLengthArgument and VariableLengthArgument still exist for those
who prefer a word-based solution.
Additions
Added Argument#flatten to flatten an Argument<Either<T,T>, CONTEXT> into a Argument<T, CONTEXT>.
Introduced a StateArgument that aims to facilitate char-based Argument parsers.
Added QuotedArgument which captures quoted Strings.
Added CodeBlockArgument which captures Markdown code blocks.
Removals
Arguments no longer provide an example field. They weren't used for anything currently will be reintroduced in
a later version in a way that allows the separation of program logic and presentation.
0.3.0
Changes
SingleWordArgument
,FixedLengthArgument
andVariableLengthArgument
still exist for those who prefer a word-based solution.Additions
Argument#flatten
to flatten anArgument<Either<T,T>, CONTEXT>
into aArgument<T, CONTEXT>
.StateArgument
that aims to facilitate char-based Argument parsers.QuotedArgument
which captures quoted Strings.CodeBlockArgument
which captures Markdown code blocks.Removals
Versions