def opt.has
import cswap-bend-cli@0.1.0.0/args.bend as Argsimport 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)