Cli.parse_short_tail: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 1371-1386 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=1371&end_line=1386 import Base def parse_short_tail(tail: String, +short: String, +repeat: Bool) -> Usage: match tail: case SNil{}: Parsed{String.drop(short, 1n), short, "", Bool.pick(UsageKind, repeat, CountKind{}, FlagKind{})} case SCon{Chr{44}, SCon{Chr{32}, long_rest}}: parse_long_prefixed(long_rest, short, repeat, 4n) case SCon{Chr{32}, SCon{Chr{60}, ph_rest}}: finish_required_value(scan_ph(ph_rest, 4n, "", '>'), String.drop(short, 1n), short, "", OptionKind{repeat}) case SCon{Chr{91}, SCon{Chr{61}, SCon{Chr{60}, ph_rest}}}: finish_optional_value(scan_ph(ph_rest, 5n, "", '>'), String.drop(short, 1n), short, "") case _: Invalid{2n} Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.drop 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=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=parse_long_prefixed https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=scan_ph