Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails exits with zero code if launched with invalid parameters in command-line outside of project directory #42607

Open
endenis opened this issue Jun 25, 2021 · 0 comments

Comments

@endenis
Copy link

endenis commented Jun 25, 2021

I noticed this problem while configuring CI. I called rails db:migrate from incorrect folder. It passed: it rendered usage instructions without returning any error code.

Steps to reproduce

When called outside of project directory

rails some-invalid-argument

Expected behavior

Renders usage instructions and return a non-zero exit code

Actual behavior

Renders usage instructions and returns a zero exit code as if there is no error.

System configuration

Rails version:
7.0.0.alpha

Ruby version:
2.7.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants