def tool.parse
import ezx@1.11.0.0/src/share/args.bend as Argsimport Base
122# the words of `tool run` the parse reads: the flag when it leads, and the
123# target
124def tool.parse(lead: Bool, +as: List<&2, String>) -> List<&2, String>:
125 match lead:
126 case True{}:
127 tool.flagged(at(as, 3n), at(as, 4n))
128 case False{}:
129 tool.line(at(as, 2n))