def scan_found_kind
cli@0.2.0.0 · cli.bend:3222
import cli@0.2.0.0/cli.bend as Cli
import Base
3222def scan_found_kind(kind: UsageKind, attached: Maybe<&2, String>,
3223 state: ScanState, info: ArgInfo, polarity: Bool) -> Mode:
3224 match kind:
3225 case FlagKind{}:
3226 scan_simple_option(attached, state, info, polarity)
3227 case CountKind{}:
3228 scan_simple_option(attached, state, info, polarity)
3229 case NegatableKind{}:
3230 scan_simple_option(attached, state, info, polarity)
3231 case OptionKind{many}:
3232 scan_option(attached, state, info)
3233 case BareOptionKind{}:
3234 scan_bare_option(attached, state, info)
3235 case PosKind{required, many}:
3236 scan_settle(state)