cognitect-labs / test-runner

A test runner for clojure.test
Eclipse Public License 2.0
286 stars 31 forks source link

Returns zero (success) exit code on bad command-line arguments #22

Closed frenchy64 closed 3 years ago

frenchy64 commented 3 years ago

Currently if any command-line arguments passed to cognitect.test-runner/-main contain errors, help messages are printed but the exit code is still 0. It might be a better idea to return a non-zero code so CI builds fail in this case.

FWIW I came across this while changing my scripts from -A to -M, and I had to move an -Sdeps directive to before the -M.