collectMatchResults
Collect the flat pattern defaults and the matched (collected) leaves into the result map.
Shared by both docopt overloads.
Parameters
pattern | Root usage pattern after a successful match. |
collected | Leaves matched from argv. |
Returns
The result map (pattern defaults first, collected values overriding).