def cluster.val.kind
import shake@0.7.0.0/src/cli.bend as Cliimport Base
867# the value a letter of this kind gives its argument: an option takes the
868# rest of the word, after one `=`
869def cluster.val.kind(kk: ArgKind, +rest: String) -> Maybe<&2, String>:
870 match kk:
871 case Flag{}:
872 cluster.val.flag(String.starts_with(rest, "="), rest)
873 case Opt{}:
874 short_of.val(String.starts_with(rest, "="), rest)
875 case Many{}:
876 short_of.val(String.starts_with(rest, "="), rest)
877 case Pos{}:
878 None{}
879 case Rest{}:
880 None{}