Parse cli options.
Proxy to tools.cli
Parse cli options. Proxy to [tools.cli](https://github.com/clojure/tools.cli)
(error-msg {:keys [errors] :as _cli-opts})
Returns string reporting a parsing error.
Returns string reporting a parsing error.
(errors {:keys [errors] :as _cli-options})
If errors occur, displays them.
If errors occur, displays them.
(inverse cli-opts opts)
Update cli-opts
like the options in the list opts
Update `cli-opts` like the options in the list `opts`
(parse-cli cli-options)
(parse-cli args cli-options)
Analyse args
with cli-options.
. (args
is defaulted to actual cli arguments.)
Returns a map with [options arguments errors summary]
fields.
Analyse `args` with `cli-options.`. (`args` is defaulted to actual cli arguments.) Returns a map with `[options arguments errors summary]` fields.
(print-usage {:keys [summary]} current-task)
Returns the string for the summary of the task.
Returns the string for the summary of the task.
(print-usage-with-arguments {:keys [summary]}
current-task
arguments
arguments-desc)
Returns the string explaining the usage of the task, with mandatory arguments.
Returns the string explaining the usage of the task, with mandatory arguments.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close