Cli.env_names: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 7781-7789 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=7781&end_line=7789 import Base # Each arg's env name in pre-order: an arg's own, then its subcommands'. def env_names(items: List<&2, Item>) -> List<&2, String>: match items: case Nil{}: Nil{} case Arg{usage, help, attrs} <> tail: List.append(&2, String, find_envs(attrs), env_names(tail)) case Sub{name, about, children} <> tail: List.append(&2, String, env_names(children), env_names(tail)) case head <> tail: env_names(tail) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String 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=find_envs