Cli.dash_tip: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 5998-6006 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=5998&end_line=6006 import Base # T5: a hyphen token that the next positional slot could take after `--`; # only then is argv scanned again to count the operands in scope. def dash_tip(hyphen: Bool, token: String, items: List<&2, Item>, c: Cmd, argv: List<&2, String>) -> List<&2, List<&2, Segment>>: match hyphen: case False{}: Nil{} case True{}: dash_slot(positional_can_take(items, trace_operands(scan(c, argv))), token) 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=List 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=Cmd https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Segment https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=dash_slot https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=positional_can_take https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=scan https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=trace_operands