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

API provides no clean way to set the --exception flag #811

Open
mpickering opened this issue Sep 22, 2021 · 1 comment
Open

API provides no clean way to set the --exception flag #811

mpickering opened this issue Sep 22, 2021 · 1 comment

Comments

@mpickering
Copy link
Contributor

I want to always pass the --exception flag so that I can catch ShakeException and control how the output is displayed to the user. From reading the code I learned that the --exception flag exists but the only way I could find to set it was by appending --exception to the command line argument and using --with-args. It would be nicer if this option could be set by modifying ShakeOptions or something similar.

@ndmitchell
Copy link
Owner

That makes sense. Happy to take a patch - should just be a case of adding a flag shakeRaiseException and replacing the Exception alternative of Development.Shake.Internal.Args with something in ShakeOptions.

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