clojure.tools.cli
(source)Tools for working with command line arguments.
Public Variable | Short Description |
---|---|
cli (clj) | THIS IS A LEGACY FUNCTION and is deprecated. |
format-lines (clj) | Format a sequence of summary parts into columns. |
get-default-options (clj) | Extract the map of default options from a sequence of option vectors. |
make-summary-part (clj) | Given a single compiled option spec, turn it into a formatted string, optionally with its default values if requested. |
parse-opts (clj) | Parse arguments sequence according to given option specifications and the GNU Program Argument Syntax Conventions: https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html Option specifications are a sequence of vectors with the following format: [short-opt long-opt-with-required-description description :property value] The first three string parameters in an option spec are positional and optional, and may be nil in order to specify a later parameter. |
summarize (clj) | Reduce options specs into a options summary for printing at a terminal. |