Closed gabriel376 closed 5 months ago
Solves https://github.com/lambdaisland/cli/issues/4
(parse-error!)
(System/exit)
dispatch
(dispatch*)
(dispatch)
Unknown flag:
FATAL
stderr
Why did you get rid of the original tests? Were they failing?
Released in v0.8.39
[com.lambdaisland/cli "0.8.39"] ;; deps.edn {com.lambdaisland/cli {:mvn/version "0.8.39"}} ;; project.clj
Solves https://github.com/lambdaisland/cli/issues/4
Notes
(parse-error!)
thrown an Exception rather than calling(System/exit)
, so tests can be executed and checked against itdispatch
function into(dispatch*)
and(dispatch)
: the former contains the actual logic and the latter handles exceptionsUnknown flag:
(dispatch)
printFATAL
messages tostderr