def parse_short
import cli@0.2.0.0/cli.bend as Cliimport Base
1388def parse_short(s: String, repeat: Bool) -> Usage:
1389 match s:
1390 case SCon{Chr{45}, SCon{+h, tail}}:
1391 Bool.pick(Usage, name_start(h),
1392 parse_short_tail(tail, String.append("-", Char.show(h)), repeat),
1393 Invalid{1n})
1394 case _:
1395 Invalid{1n}