def parse.step.short.go

shake@0.7.0.0 · src/cli.bend:1147

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

1147# `-` as a word, or a short option
1148def parse.step.short.go(
1149  alone: Bool,
1150  +tok: String,
1151  +args: List<&2, Arg>,
1152  +up: List<&2, Level>,
1153  +subs: List<&2, Sub>,
1154  +path: List<&2, String>,
1155  +binds: List<&2, Bind>,
1156  +pos: List<&2, Arg>,
1157  +seen: Bool
1158) -> St:
1159  match alone:
1160    case True{}:
1161      parse.word(tok, args, up, subs, path, binds, pos, False{}, seen)
1162    case False{}:
1163      parse.take_short(String.drop(tok, 1n), tok, args, up, subs, path, binds, pos,
1164        False{}, seen)

Uses (11)

Used by (1)