Cli.help.arg_width: def of shake@0.7.0.0 Import: import shake@0.7.0.0/src/cli.bend as Cli Lines 1959-1965 of shake@0.7.0.0/src/cli.bend: https://jend.leeeet.dev/read.txt?path=shake@0.7.0.0/src/cli.bend&start_line=1959&end_line=1965 import Base # the max positional-label width def help.arg_width(args: List<&2, Arg>, nn: Nat) -> Nat: match args: case Nil{}: nn case Con{+h, t}: help.arg_width(t, help.max(nn, String.length(help.pos.label(h)))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.length https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=Arg https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=help.max https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=help.pos.label