Previously, the return type of ContextAwareParse::parse_input() was (Option<Self>, Vec<Self>) with no real explanation of why. This has now been updated to a properly-documented struct called CommandMatches<T>. It also provides convenience functions for converting and combining multiple sets of matches, consolidating some (admittedly simple) logic that was previously scattered all over the place.
Normally I try to keep commits small and numerous in each branch, but this is one of those rip-the-bandaid changes.
@alfonsomartinezs FYI - this should make the parser handling that we paired on a bit more intuitive, at the expense of possibly breaking the draft branch.
Previously, the return type of
ContextAwareParse::parse_input()
was(Option<Self>, Vec<Self>)
with no real explanation of why. This has now been updated to a properly-documented struct calledCommandMatches<T>
. It also provides convenience functions for converting and combining multiple sets of matches, consolidating some (admittedly simple) logic that was previously scattered all over the place.Normally I try to keep commits small and numerous in each branch, but this is one of those rip-the-bandaid changes.
Resolves #325.