def with_interval

cswap-bend-cli@0.1.0.0 · tui/run.bend:42

import cswap-bend-cli@0.1.0.0/tui/run.bend as Run
import Base

42def with_interval(+o: Opts, +v: Maybe<&2, U32>) -> Opts:
43  match v:
44    case None{}:
45      with_bad(o, "--interval needs a whole number of seconds")
46    case Some{n}:
47      set_interval(o, n)

Uses (5)

Used by (1)