def err.spelled

shake@0.7.0.0 · src/cli.bend:2148

import shake@0.7.0.0/src/cli.bend as Cli
import Base

2148# a flag or an option spelled as an error names it: `--long`, else `-s`,
2149# followed by its value mark, else its name when it has no spelling
2150def err.spelled(+short: String, +long: String, +name: String, +mark: String) -> String:
2151  Bool.pick(String, String.is_empty(long),
2152    Bool.pick(String, String.is_empty(short), name, "-" ++ short ++ mark),
2153    "--" ++ long ++ mark)

Uses (4)

Used by (1)