Cli.group_given: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 3955-3962 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=3955&end_line=3962 import Base def group_given(items: List<&2, SpecItem>, +fields: List<&2, Field>, +name: String) -> Bool: match items: case Nil{}: False{} case SpecArg{ArgInfo{id, usage, short, long, kind, attrs}} <> tail: Bool.or(Bool.and(arg_in_group(attrs, name), field_given(fields, id)), group_given(tail, fields, name)) case head <> tail: group_given(tail, fields, name) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=ArgInfo https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Field https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=SpecItem https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=arg_in_group https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=field_given