Cli.fit_name: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 4413-4422 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=4413&end_line=4422 import Base def fit_name(+kind: UsageKind, attrs: List<&2, Item>, +stem: String) -> String: match kind: case FlagKind{}: "flag" case NegatableKind{}: "flag" case CountKind{}: "count" case _: Bool.pick(String, kind_many(kind), String.append(stem, "s"), Bool.pick(String, always_present(kind, attrs), stem, String.append(stem, "_opt"))) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=UsageKind https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=always_present https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=kind_many