def env.flag.is

shake@0.7.0.0 · src/cli.bend:1640

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

1640# whether this kind is a flag
1641def env.flag.is(kk: ArgKind) -> Bool:
1642  match kk:
1643    case Flag{}:
1644      True{}
1645    case Opt{}:
1646      False{}
1647    case Many{}:
1648      False{}
1649    case Pos{}:
1650      False{}
1651    case Rest{}:
1652      False{}

Uses (2)

Used by (1)