def scope_groups
import cli@0.2.0.0/cli.bend as Cliimport Base
1682def scope_groups(items: List<&2, Item>) -> List<&2, String>:
1683 match items:
1684 case Nil{}: Nil{}
1685 case Arg{usage, help, attrs} <> tail:
1686 List.append(&2, String, find_group_attrs(attrs), scope_groups(tail))
1687 case head <> tail: scope_groups(tail)