You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have been using scallop in the abandon project for a long time, and it works fine. But when we tried to add a test case for the "-h" option, we are getting strange errors from scalatest.
Help and Version are not subclasses of ScallopException, they are subclasses of ScallopResult. So the match statement did not catch them, instead forwarding to super.onError - which prints help and calls sys.exit(0), killing the forked process and closing the streams.
Firstly, thanks for this useful library!
We have been using scallop in the abandon project for a long time, and it works fine. But when we tried to add a test case for the "-h" option, we are getting strange errors from
scalatest
.Please see this PR.
Any idea what's going on? Is the output stream being closed prematurely?
The text was updated successfully, but these errors were encountered: