Cli.parse.take_pos: def of shake@0.7.0.0 Import: import shake@0.7.0.0/src/cli.bend as Cli Lines 1024-1041 of shake@0.7.0.0/src/cli.bend: https://jend.leeeet.dev/read.txt?path=shake@0.7.0.0/src/cli.bend&start_line=1024&end_line=1041 import Base # the next remaining positional, or an unexpected word def parse.take_pos( +tok: String, +args: List<&2, Arg>, +up: List<&2, Level>, subs: List<&2, Sub>, +path: List<&2, String>, +binds: List<&2, Bind>, pos: List<&2, Arg>, raw: Bool ) -> St: match pos: case Nil{}: parse.dead(Unexpected{path, tok}, args, up, subs, path, binds, pos, raw, True{}) case Con{+h, t}: Arg{+name, _s, _l, _k, _h, _r, _d, +cs} = h parse.take_choice(allowed(cs, tok), name, tok, args, up, subs, path, binds, parse.take_pos.keep(rest.is(h), h, t), raw, True{}) Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=Arg https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=Bind https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=Level https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=ParseErr https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=St https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=Sub https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=allowed https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=parse.dead https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=parse.take_choice https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=parse.take_pos.keep https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=rest.is