def reads.want

shake@0.7.0.0 · src/check.bend:244

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

244# a read of an argument that is, or is not, a flag
245def reads.want(want: Want, flag: Bool, +path: List<&2, String>, +name: String) -> List<&2, ReadErr>:
246  match want:
247    case WantFlag{}:
248      reads.one(Bool.not(flag), NotFlag{path, name})
249    case WantValue{}:
250      reads.one(flag, IsFlag{path, name})

Uses (7)

Used by (1)