def parse.step.short

shake@0.7.0.0 · src/cli.bend:1166

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

1166# `-` alone is a positional; otherwise a short option
1167def parse.step.short(
1168  dash: Bool,
1169  +tok: String,
1170  +args: List<&2, Arg>,
1171  +up: List<&2, Level>,
1172  +subs: List<&2, Sub>,
1173  +path: List<&2, String>,
1174  +binds: List<&2, Bind>,
1175  +pos: List<&2, Arg>,
1176  +seen: Bool
1177) -> St:
1178  match dash:
1179    case True{}:
1180      parse.step.short.go(String.is_empty(String.drop(tok, 1n)), tok, args, up, subs, path, binds,
1181        pos, seen)
1182    case False{}:
1183      parse.word(tok, args, up, subs, path, binds, pos, False{}, seen)

Uses (12)

Used by (1)