Skip to main content

parse-args

function

babashka.process/parse-args

(parse-args [args])
Parses arguments to `process` to map with: * `:prev`: a (previous) process whose input is piped into the current process * `:cmd`: a vector of command line argument strings * `:opts`: options map Note that this function bridges the legacy `[cmds ?opts]` syntax to the newer recommended syntax `[?opts & args]` and therefore looks unnecessarily complex.

No examples yet. Be the first to add one!