def fish_kind

cli@0.2.0.0 · cli.bend:7148

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

7148# An option of kind needs its value (-r), and only a file name may be any
7149# word (-x elsewhere); a [=<V>] value is optional.
7150def fish_kind(kind: UsageKind, +id: String, +comp: Comp) -> String:
7151  match kind:
7152    case OptionKind{many}:
7153      String.append(fish_needs(comp), fish_words(id, comp))
7154    case BareOptionKind{}: fish_words(id, comp)
7155    case _: ""

Uses (6)

Used by (1)