def pos_slot

cli@0.2.0.0 · cli.bend:6398

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

6398def pos_slot(parsed: Usage, k: Nat, usage: String, +attrs: List<&2, Item>,
6399    lists: List<&2, List<&2, String>>) -> List<&2, Slot>:
6400  match parsed:
6401    case Parsed{id, short, long, PosKind{required, many}}:
6402      [Slot{k, has_hidden(attrs), required, many, has_rest(attrs),
6403        placeholder(usage), comp_of(find_one_of(attrs), find_as(attrs), lists)}]
6404    case _: []

Uses (13)

Used by (1)