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

Add an option to throw an exception or return instead of calling exit() #96

Open
d0x2f opened this issue Oct 3, 2018 · 1 comment
Open

Comments

@d0x2f
Copy link

d0x2f commented Oct 3, 2018

Calling exit aborts the entire application making it difficult work around in some situations, such as during unit tests or when the outcome of an invocation should be logged.

An option to throw an exception instead of calling exit would be great!

Relevant line:

@tolidano
Copy link

tolidano commented Jun 2, 2019

See my PHP 7.2+ fork/rewrite, which does neither: https://packagist.org/packages/tolidano/commandox

Happy to discuss further there.

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

No branches or pull requests

2 participants