def lint_items
import cli@0.2.0.0/cli.bend as Cliimport Base
1709def lint_items(items: List<&2, Item>) -> List<&2, LintItem>:
1710 match items:
1711 case Nil{}: Nil{}
1712 case Arg{+usage, help, attrs} <> tail:
1713 LintArg{usage, help, attrs, parse_usage(usage)} <> lint_items(tail)
1714 case Sub{name, about, +children} <> tail:
1715 LintSub{name, about, children, lint_items(children)} <> lint_items(tail)
1716 case head <> tail: LintOther{head} <> lint_items(tail)