def scope_groups

cli@0.2.0.0 · cli.bend:1682

import cli@0.2.0.0/cli.bend as Cli
import 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)

Uses (5)

Used by (1)