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

Split showHelpOnFail error level #2170

Open
artembeep opened this issue Apr 26, 2022 · 2 comments
Open

Split showHelpOnFail error level #2170

artembeep opened this issue Apr 26, 2022 · 2 comments

Comments

@artembeep
Copy link

Is it possible to customize somehow error level for showHelpOnFail to show help only for cli notation level errors.
E.g. wrong option set provided, unknown command etc.

But same time to skip usage screen if an application level error is raised.

Thx!

@shadowspawn
Copy link
Member

I am not sure I understand. What is an example of an application level error? (Like a throw, or accessing undefined variable in own code?)

@Macil
Copy link

Macil commented Mar 21, 2024

I've noticed that help is shown either when the user specifies an invalid command/option, or when an async command handler throws an error. I wonder if that's what OP is running into and trying to disable. I've opened an issue with more details about this case at #2394.

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

3 participants