def by_short.at

shake@0.7.0.0 · src/cli.bend:308

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

308# this Arg when the short spelling matches, else the rest
309def by_short.at(hit: Bool, hh: Arg, rest: Maybe<&2, Arg>) -> Maybe<&2, Arg>:
310  match hit:
311    case True{}:
312      Some{hh}
313    case False{}:
314      rest

Uses (3)

Used by (1)