def help.has_opt

shake@0.7.0.0 · src/cli.bend:2003

import shake@0.7.0.0/src/cli.bend as Cli
import Base

2003# whether any Arg is not a positional
2004def help.has_opt(args: List<&2, Arg>) -> Bool:
2005  match args:
2006    case Nil{}:
2007      False{}
2008    case Con{+h, t}:
2009      help.has_opt.at(pos.is(h), help.has_opt(t))

Uses (5)

Used by (1)