automaton-build.os.cli-opts
Parse cli options.
Proxy to tools.cli
error-msg
(error-msg {:keys [errors], :as _cli-opts})
Returns string reporting a parsing error.
errors
(errors {:keys [errors], :as _cli-options})
If errors occur, displays them.
help-options
inverse
(inverse cli-opts opts)
Update cli-opts
like the options in the list opts
inverse-options
parse-cli
(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.
print-usage
(print-usage {:keys [summary]} current-task)
Returns the string for the summary of the task.
print-usage-with-arguments
(print-usage-with-arguments {:keys [summary]} current-task arguments arguments-desc)
Returns the string explaining the usage of the task, with mandatory arguments.