Cli.spec_items: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 2780-2787 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=2780&end_line=2787 import Base # items less their Subs, each Arg's usage parsed once. def spec_items(items: List<&2, Item>) -> List<&2, SpecItem>: match items: case Nil{}: Nil{} case Arg{usage, help, attrs} <> tail: SpecArg{arg_info(usage, attrs)} <> spec_items(tail) case Sub{name, about, children} <> tail: spec_items(tail) case head <> tail: SpecOther{head} <> spec_items(tail) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Item 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_info