def dash_tip

cli@0.2.0.0 · cli.bend:5998

import cli@0.2.0.0/cli.bend as Cli
import Base

5998# T5: a hyphen token that the next positional slot could take after `--`;
5999# only then is argv scanned again to count the operands in scope.
6000def dash_tip(hyphen: Bool, token: String, items: List<&2, Item>, c: Cmd,
6001    argv: List<&2, String>) -> List<&2, List<&2, Segment>>:
6002  match hyphen:
6003    case False{}: Nil{}
6004    case True{}:
6005      dash_slot(positional_can_take(items, trace_operands(scan(c, argv))),
6006        token)

Uses (10)

Used by (1)