def cluster.val.flag

shake@0.7.0.0 · src/cli.bend:858

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

858# a flag's value in a cluster: the rest when it starts with `=` (which
859# `take_arg` refuses), else none, so the next letter goes on
860def cluster.val.flag(eq: Bool, +rest: String) -> Maybe<&2, String>:
861  match eq:
862    case True{}:
863      Some{rest}
864    case False{}:
865      None{}

Uses (3)

Used by (1)