def parse.take_pos.keep

shake@0.7.0.0 · src/cli.bend:1016

import shake@0.7.0.0/src/cli.bend as Cli
import Base

1016# a rest positional stays; a plain one is consumed
1017def parse.take_pos.keep(keep: Bool, hh: Arg, tt: List<&2, Arg>) -> List<&2, Arg>:
1018  match keep:
1019    case True{}:
1020      hh <> tt
1021    case False{}:
1022      tt

Uses (3)

Used by (1)