Options can now also be required, which will cause an UnknownSyntaxError to be thrown if one of the required options is missing. It also allows commands to be disambiguated by their required options (see the tests).
I've also added better arity support in the typings (now the tuple length will be inferred from the arity option). The order of the overloads is intended, don't change it or everything will break.
Options can now also be required, which will cause an
UnknownSyntaxError
to be thrown if one of the required options is missing. It also allows commands to be disambiguated by their required options (see the tests).