kohana / minion

Everyone loves having a minion they can boss around
113 stars 76 forks source link

Should exit with error status on invalid arguments #109

Open acoulton opened 9 years ago

acoulton commented 9 years ago

If running a task with invalid arguments, minion currently just prints the validation error to stdout and skips execution of the task, eventually terminating with an exit code of 0.

I would expect it to quit with a nonzero code in this case, since the task has failed.

There's 3 options for fixes:

Returning an exit code feels cleanest, but I think throwing an exception is the most sensible bugfix at this point?