def parse_short

cli@0.2.0.0 · cli.bend:1388

import cli@0.2.0.0/cli.bend as Cli
import 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}

Uses (12)

Used by (1)