Cli.gather_value_if: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 3671-3677 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=3671&end_line=3677 import Base # gather with a hit's value, or as it was on a miss: a match, not # Bool.pick, so a miss builds nothing. def gather_value_if(hit: Bool, gather: Gather, value: String, kind: UsageKind) -> Gather: match hit: case True{}: gather_value(gather, value, kind_many(kind)) case False{}: gather Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Gather 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=gather_value https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=kind_many