riverqueue/river

cmd/river: Exit code 0 on flag error

Closed this issue · 1 comments

When I run:

$ go run github.com/riverqueue/river/cmd/river@latest migrate-up

I get:

Error: required flag(s) "database-url" not set
Usage:
[...]

But the exit code is 0, which means success:

$ echo $?
0

The command should exit with a non-zero code on error.

Thanks. Fixed in #363.