def parse.take_long.found

shake@0.7.0.0 · src/cli.bend:781

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

781# a long option the current command spells, or an unknown one
782def parse.take_long.found(
783  found: Maybe<&2, Arg>,
784  +name: String,
785  val: Maybe<&2, String>,
786  +orig: String,
787  +args: List<&2, Arg>,
788  +up: List<&2, Level>,
789  +subs: List<&2, Sub>,
790  +path: List<&2, String>,
791  +binds: List<&2, Bind>,
792  +pos: List<&2, Arg>,
793  +raw: Bool,
794  +seen: Bool
795) -> St:
796  match found:
797    case None{}:
798      parse.take_long.help(long_help(name, val, seen), orig, args, up, subs, path,
799        binds, pos, raw, seen)
800    case Some{a}:
801      parse.take_arg(Some{a}, val, orig, args, up, subs, path, binds, pos, raw, seen)

Uses (12)

Used by (1)