def parse
import cswap-bend-cli@0.1.0.0/tui/run.bend as Runimport Base
276# `fuel` is the argument count, at least the number of steps.
277def parse(+fuel: Nat, +args: List<&2, String>, +o: Opts) -> Opts:
278 match fuel args:
279 case _ Nil{}:
280 o
281 case 0n _:
282 o
283 case 1n+p Con{a, t}:
284 parse(p, rest_after2(String.eq(a, "--interval"), t), step(o, a, head_opt(t)))