def cluster.ends.kind

shake@0.7.0.0 · src/cli.bend:891

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

891# whether a letter of this kind ends the cluster: every kind but a flag that
892# is not followed by `=`
893def cluster.ends.kind(kk: ArgKind, +rest: String) -> Bool:
894  match kk:
895    case Flag{}:
896      String.starts_with(rest, "=")
897    case Opt{}:
898      True{}
899    case Many{}:
900      True{}
901    case Pos{}:
902      True{}
903    case Rest{}:
904      True{}

Uses (4)

Used by (1)