def help.label.kind
import shake@0.7.0.0/src/cli.bend as Cliimport Base
1799# the short/long label of an option, plus a metavar for Opt
1800def help.label.kind(kk: ArgKind, +name: String, +label: String) -> String:
1801 match kk:
1802 case Flag{}:
1803 label
1804 case Opt{}:
1805 label ++ " <" ++ String.to_upper(name) ++ ">"
1806 case Many{}:
1807 label ++ " <" ++ String.to_upper(name) ++ ">..."
1808 case Pos{}:
1809 label
1810 case Rest{}:
1811 label