Cli.valid_bool: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 1936-1939 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=1936&end_line=1939 import Base def valid_bool(s: String) -> Bool: List.contains(~String, ~String.eq, ["true", "false", "yes", "no", "on", "off", "1", "0"], String.to_lower(s)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.contains https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.to_lower