(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close