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

Return non-zero exit codes on error of CLI #1

Open
easoncxz opened this issue Oct 8, 2018 · 0 comments
Open

Return non-zero exit codes on error of CLI #1

easoncxz opened this issue Oct 8, 2018 · 0 comments

Comments

@easoncxz
Copy link
Owner

easoncxz commented Oct 8, 2018

eason@eason-air ‹ dev ↑● › (2018-10-08 19:02:38 NZDT) ~/pg/hack-assembler
[0] % homebrew_automation.rb foobar
Could not find command "foobar".
eason@eason-air ‹ dev ● › (2018-10-08 19:03:29 NZDT) ~/pg/hack-assembler
[0] %

Notice the 0 on the final line. This is not good. Try https://stackoverflow.com/questions/17241932/ruby-thor-exit-status-in-case-of-an-error for fixing this.

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

No branches or pull requests

1 participant