Codebase list tools-cli-clojure / a557226
Fixes TCLI-95 by adding :missing to the error handling section Sean Corfield 4 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
186186 and returns them to the caller. Unknown options, missing required arguments,
187187 validation errors, and exceptions thrown during `:parse-fn` are all added to
188188 the errors vector.
189
190 By default, the error message when a required argument is omitted is:
191
192 `Missing required argument for ...`
193
194 This can be overridden by providing a `:missing` key in the option spec with a
195 string that should be used for the error message instead of the default.
189196
190197 Correspondingly, `parse-opts` returns the following map of values:
191198