Check.text: def of shake@0.7.0.0 Import: import shake@0.7.0.0/src/check.bend as Check Lines 157-175 of shake@0.7.0.0/src/check.bend: https://jend.leeeet.dev/read.txt?path=shake@0.7.0.0/src/check.bend&start_line=157&end_line=175 import Base # a report as one line def text(err: SpecErr) -> String: match err: case RestNotLast{path, name}: at(path) ++ "rest positional '" ++ name ++ "' is not the last positional" case SameName{path, name}: at(path) ++ "two arguments are named '" ++ name ++ "'" case SameShort{path, short}: at(path) ++ "two arguments are spelled '-" ++ short ++ "'" case SameLong{path, long}: at(path) ++ "two arguments are spelled '--" ++ long ++ "'" case SameSub{path, name}: at(path) ++ "two subcommands are named '" ++ name ++ "'" case HelpSub{path}: at(path) ++ "a subcommand is named 'help', which `parse` keeps for help" case DefaultNotChoice{path, name, value}: at(path) ++ "the default '" ++ value ++ "' of '" ++ name ++ "' is not one of its choices" case RequiredAfterOptional{path, name}: at(path) ++ "required positional '" ++ name ++ "' follows an optional one" Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/check.bend&name=SpecErr https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/check.bend&name=at