def parse.take_short.go

shake@0.7.0.0 · src/cli.bend:981

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

981# a request for help (`-h`, as `help`), or a cluster of short options
982def parse.take_short.go(
983  hit: Bool,
984  body: String,
985  +orig: String,
986  +args: List<&2, Arg>,
987  +up: List<&2, Level>,
988  +subs: List<&2, Sub>,
989  +path: List<&2, String>,
990  +binds: List<&2, Bind>,
991  +pos: List<&2, Arg>,
992  +raw: Bool,
993  +seen: Bool
994) -> St:
995  match hit:
996    case True{}:
997      St{Help{}, args, up, subs, path, binds, pos, raw, seen}
998    case False{}:
999      cluster(body, orig, St{Free{}, args, up, subs, path, binds, pos, raw, seen}, False{})

Uses (10)

Used by (1)