def scan_builtin_long_case

cli@0.2.0.0 · cli.bend:3296

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

3296def scan_builtin_long_case(help: Bool, +name: String,
3297    attached: Maybe<&2, String>, +state: ScanState) -> Mode:
3298  match help:
3299    case True{}:
3300      scan_builtin_hit(attached, state, HelpHit{True{}}, "--help")
3301    case False{}:
3302      scan_builtin_other(Bool.and(String.eq(name, "--version"),
3303        scope_version(scan_state_scope(state))), name, attached, state)

Uses (12)

Used by (1)