Cli.finish_optional_value: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 1326-1334 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=1326&end_line=1334 import Base def finish_optional_value(found: PhScan, id: String, short: String, long: String) -> Usage: match found: case PhBad{col}: Invalid{col} case PhOK{rev, SCon{Chr{93}, SNil{}}, next}: Parsed{id, short, long, BareOptionKind{}} case PhOK{rev, rest, next}: Invalid{next} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=PhScan https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Usage https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=UsageKind