def help.step.go

shake@0.7.0.0 · src/cli.bend:2086

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

2086# a found child becomes the page; an unknown name stays
2087def help.step.go(
2088  found: Maybe<&2, Sub>,
2089  +bin: String,
2090  +about: String,
2091  version: Maybe<&2, String>,
2092  args: List<&2, Arg>,
2093  subs: List<&2, Sub>,
2094  +next: String,
2095  +usage: String
2096) -> How:
2097  match found:
2098    case None{}:
2099      How{bin, about, version, args, subs, usage}
2100    case Some{s}:
2101      Sub{+name, +about2, args2, subs2} = s
2102      How{name, about2, None{}, args2, subs2, usage ++ " " ++ next}

Uses (7)

Used by (1)