def opt.has

cswap-bend-cli@0.1.0.0 · args.bend:92

import cswap-bend-cli@0.1.0.0/args.bend as Args
import Base

92def opt.has(+name: String, os: List<&2, Opt>) -> Bool:
93  match os:
94    case Nil{}:
95      False{}
96    case Con{Opt{n, v}, t}:
97      String.eq(n, name) || opt.has(name, t)

Uses (6)

Used by (2)