Cli.scope_ids: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 1757-1767 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=1757&end_line=1767 import Base def scope_ids(items: List<&2, LintItem>) -> List<&2, String>: match items: case Nil{}: Nil{} case LintArg{usage, help, attrs, parsed} <> tail: +name = usage_id(parsed, attrs) +rest = scope_ids(tail) Bool.pick(List<&2, String>, String.is_empty(name), rest, name <> rest) case head <> tail: scope_ids(tail) Uses (6): 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 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=LintItem https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=usage_id