Srvargs.fmt_of2: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/srvargs.bend as Srvargs Lines 63-72 of cswap-bend-cli@0.1.0.0/srvargs.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/srvargs.bend&start_line=63&end_line=72 import Base import cswap-bend-cli@0.1.0.0/fmt/out.bend as O def fmt_of2(m: Maybe<&2, O.Fmt>, +name: String) -> Result<&2, &2, String, O.Fmt>: match m: case Some{O.FText{}}: Fail{"argument --format: invalid choice: '" ++ name ++ "' (choose from 'json', 'toon', 'yaml')"} case Some{O.FCsv{}}: Fail{"argument --format: invalid choice: '" ++ name ++ "' (choose from 'json', 'toon', 'yaml')"} case Some{f}: Done{f} case None{}: Fail{"argument --format: invalid choice: '" ++ name ++ "' (choose from 'json', 'toon', 'yaml')"} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fmt/out.bend&name=Fmt