Fixes TCLI-95 by adding :missing to the error handling section
Sean Corfield
4 years ago
186 | 186 | and returns them to the caller. Unknown options, missing required arguments, |
187 | 187 | validation errors, and exceptions thrown during `:parse-fn` are all added to |
188 | 188 | 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. | |
189 | 196 | |
190 | 197 | Correspondingly, `parse-opts` returns the following map of values: |
191 | 198 |