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
Considering the fact that your great API is supposed to be used in a lot of different contexts like web service (Tomcat, Jetty, ...) as well as applications/other APIs it is very annoying to have calls to System.err.println which
may be do not produce any output (web service)
may pollute the user program/other API using GnuGetopt
In my case I have replaced all calls to System.err.println to throw new IllegalArgumentException which leaves it to the user/programmer to decide what he wants to do with the Exception
The text was updated successfully, but these errors were encountered:
Hello. Thanks for your comments. The reason this API prints errors is because the original design goal was 100% compatibility with the glibc version. I will evaluate an option to turn this off for a future update.
Good answer. Yours may turn out to be the better model
On Dec 6, 2015 4:37 PM, "arenn" [email protected] wrote:
Hello. Thanks for your comments. The reason this API prints errors is
because the original design goal was 100% compatibility with the glibc
version. I will evaluate an option to turn this off for a future update.
—
Reply to this email directly or view it on GitHub #3 (comment).
Considering the fact that your great API is supposed to be used in a lot of different contexts like web service (Tomcat, Jetty, ...) as well as applications/other APIs it is very annoying to have calls to System.err.println which
In my case I have replaced all calls to System.err.println to throw new IllegalArgumentException which leaves it to the user/programmer to decide what he wants to do with the Exception
The text was updated successfully, but these errors were encountered: