argparser.format_error

argparser

format_error(err) -> message

Format a parse error into a human-readable string

Formats the error table returned by cmd:parse() into a displayable string. Combines usage line, error message, and suggestions (when present). For err.kind == "help", returns the markdown help directly.