def reads.want
import shake@0.7.0.0/src/check.bend as Checkimport 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})