Cli.finish_long: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 1336-1355 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=1336&end_line=1355 import Base def finish_long(found: NameScan, short: String, +repeat: Bool, +negatable: Bool) -> Usage: match found: case NameBad{col}: Invalid{col} case NameOK{+name, SNil{}, next}: Parsed{name, short, String.append("--", name), Bool.pick(UsageKind, negatable, NegatableKind{}, Bool.pick(UsageKind, repeat, CountKind{}, FlagKind{}))} case NameOK{+name, SCon{Chr{32}, SCon{Chr{60}, tail}}, +next}: Bool.pick(Usage, negatable, Invalid{next}, finish_required_value(scan_ph(tail, Nat.add(next, 2n), "", '>'), name, short, String.append("--", name), OptionKind{repeat})) case NameOK{+name, SCon{Chr{91}, SCon{Chr{61}, SCon{Chr{60}, tail}}}, +next}: Bool.pick(Usage, Bool.or(negatable, repeat), Invalid{next}, finish_optional_value(scan_ph(tail, Nat.add(next, 3n), "", '>'), name, short, String.append("--", name))) case NameOK{name, rest, next}: Invalid{next} Uses (16): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add 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=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=NameScan 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 https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=finish_optional_value https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=finish_required_value https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=scan_ph