def free
import cswap-bend-cli@0.1.0.0/gflags.bend as Gflagsimport Base
52def free(+keep_fmt: Bool, +h: String, +g: G) -> G:
53 sel.g(Bool.not(keep_fmt) && String.eq(h, "--format"), pend(g),
54 sel.g(Bool.not(keep_fmt) && String.starts_with(h, "--format="), with_fmt(g, String.drop(h, 9n)),
55 sel.g(String.eq(h, "--no-input"), with_noin(g),
56 sel.g(String.eq(h, "--yes"), with_yes(g),
57 keep(h, g)))))