def by_name.at

shake@0.7.0.0 · src/cli.bend:329

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

329# this Arg when the binding name matches, else the rest
330def by_name.at(hit: Bool, hh: Arg, rest: Maybe<&2, Arg>) -> Maybe<&2, Arg>:
331  match hit:
332    case True{}:
333      Some{hh}
334    case False{}:
335      rest

Uses (3)

Used by (1)