def kind_default_allowed

cli@0.2.0.0 · cli.bend:1468

import cli@0.2.0.0/cli.bend as Cli
import Base

1468def kind_default_allowed(kind: UsageKind) -> Bool:
1469  match kind:
1470    case OptionKind{many}: True{}
1471    case BareOptionKind{}: True{}
1472    case PosKind{required, many}: Bool.not(required)
1473    case NegatableKind{}: True{}
1474    case _: False{}

Uses (3)

Used by (1)