def finish_pos
import cli@0.2.0.0/cli.bend as Cliimport Base
1296def finish_pos(found: PhScan, kind: UsageKind) -> Usage:
1297 match found:
1298 case PhBad{col}:
1299 Invalid{col}
1300 case PhOK{rev, SNil{}, next}:
1301 Parsed{String.to_lower(String.reverse(rev)), "", "", kind}
1302 case PhOK{rev, rest, next}:
1303 Invalid{next}