Parse cli options.
Proxy to tools.cli
Parse cli options. Proxy to [tools.cli](https://github.com/clojure/tools.cli)
(enter cli-opts current-task)
Enter task execution. No argument is required
Returns nil
if ok or an exit code if an error occured.
Enter task execution. No argument is required Returns `nil` if ok or an exit code if an error occured.
(enter-args-in-a-list cli-opts current-task argument-name arg-list)
As enter, but with arguments that should be in arg-list
.
argument-name
and argument-desc
are used to display erros.
Returns nil
if ok or an exit code if an error occured.
As enter, but with arguments that should be in `arg-list`. `argument-name` and `argument-desc` are used to display erros. Returns `nil` if ok or an exit code if an error occured.
(parse-cli-args cli-options)
(parse-cli-args cli-args cli-options)
Parse cli-args
(defaulted to actual cli arguments.) with cli-options.
.
Returns a map with [options arguments errors summary]
fields.
Parse `cli-args` (defaulted to actual cli arguments.) with `cli-options.`. Returns a map with `[options arguments errors summary]` fields.
(str-to-kw s)
Turn a string starting with : and turn it into an actual keyword. Returns nil
otherwise
Turn a string starting with : and turn it into an actual keyword. Returns `nil` otherwise
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close