def gather_value_if
import cli@0.2.0.0/cli.bend as Cliimport Base
3671# gather with a hit's value, or as it was on a miss: a match, not
3672# Bool.pick, so a miss builds nothing.
3673def gather_value_if(hit: Bool, gather: Gather, value: String,
3674 kind: UsageKind) -> Gather:
3675 match hit:
3676 case True{}: gather_value(gather, value, kind_many(kind))
3677 case False{}: gather