def read_text
shake@0.7.0.0 · src/check.bend:292
import shake@0.7.0.0/src/check.bend as Check
import Base
292
293def read_text(err: ReadErr) -> String:
294 match err:
295 case NoCommand{+path}:
296 read.at(path) ++ "no command is named so"
297 case NoArg{+path, name}:
298 read.at(path) ++ "no argument is named '" ++ name ++ "'"
299 case NotFlag{+path, name}:
300 read.at(path) ++ "'" ++ name ++ "' is read as a flag, but it is not one"
301 case IsFlag{+path, name}:
302 read.at(path) ++ "'" ++ name ++ "' is read for a value, but it is a flag"