-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Report error when option not found #24
Comments
Related to #38. |
could we let the consumer decide if we should ignore the unknown option or throw an exception, something like |
Do you mean when you need to pass additional arguments to the underlying CLI or something like that? Would #39 be closer to what you need? |
yes, something like that 😄. |
It would be nice to report an error to a user when he/she specifies an unknown option.
Actual
Let's say there is an optional option
error-output
. You run a command:And for some reason, it doesn't behave as expected even though you don't see any errors.
Expected
You run this command and it tells you that option
errors-output
doesn't exist. You quickly fix the typo.The text was updated successfully, but these errors were encountered: