def reads.flag

shake@0.7.0.0 · src/check.bend:230

import shake@0.7.0.0/src/check.bend as Check
import Base
import shake@0.7.0.0/src/cli.bend as C

230# whether an argument of this kind is a flag
231def reads.flag(kk: C.ArgKind) -> Bool:
232  match kk:
233    case C.Flag{}:
234      True{}
235    case C.Opt{}:
236      False{}
237    case C.Pos{}:
238      False{}
239    case C.Rest{}:
240      False{}
241    case C.Many{}:
242      False{}

Uses (2)

Used by (1)