Cli.err.values: def of shake@0.7.0.0 Import: import shake@0.7.0.0/src/cli.bend as Cli Lines 2214-2222 of shake@0.7.0.0/src/cli.bend: https://jend.leeeet.dev/read.txt?path=shake@0.7.0.0/src/cli.bend&start_line=2214&end_line=2222 import Base # clap's line of the values a found argument allows, or nothing def err.values(found: Maybe<&2, Arg>) -> String: match found: case None{}: "" case Some{aa}: Arg{_n, _s, _l, _k, _h, _r, _d, +cs} = aa Bool.pick(String, List.is_empty(&2, String, cs), "", "\n [possible values: " ++ String.join(cs, ", ") ++ "]") Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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=Base/base.bend&name=String.join https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=Arg