Liking cljdoc? Tell your friends :D

noahtheduke.splint.cli


cli-optionsclj

source

help-messageclj

(help-message summary)
source

(print-errors errors)
source

validate-optsclj

(validate-opts args)

Parse and validate seq of strings.

Returns either a map of {:exit-message "some str" :ok logical-boolean} or {:options {map of cli opts} :paths [seq of strings]}.

:ok is false if given invalid options or an option is provided after paths.

Parse and validate seq of strings.

Returns either a map of {:exit-message "some str" :ok logical-boolean}
or {:options {map of cli opts} :paths [seq of strings]}.

:ok is false if given invalid options or an option is provided after paths.
sourceraw docstring

validate-pathsclj

(validate-paths options paths)

Treat any path strings that begin with '--' as suspect and reject the whole call. No doubt this fails for some paths, but if you're doing that, get outta here.

Treat any path strings that begin with '--' as suspect and reject the whole call. No
doubt this fails for some paths, but if you're doing that, get outta here.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close