Skip to content

cmd/river: Exit code 0 on flag error #362

Description

@vfaronov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions