Cli.position_take_count: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 3855-3862 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=3855&end_line=3862 import Base def position_take_count(kind: UsageKind, after: List<&2, ArgInfo>, +tokens: List<&2, String>) -> Nat: match kind: case PosKind{required, True{}}: Nat.sub(List.length(&2, String, tokens), List.length(&2, ArgInfo, after)) case _: Bool.pick(Nat, List.is_empty(&2, String, tokens), 0n, 1n) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=ArgInfo https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=UsageKind