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
The signature of the parse function is void parse(OutputStream out) and in CmdLineParser a writer is created using the output stream. In the usage, you are showing to use parse(System.err). System.err is an instance of PrintStream. Why can't the parse function directly use PrintStream directly? It is easy to subclass a print stream and pass it to parse instead of OutPutStream which need to handle bytes and flush functionality.
The text was updated successfully, but these errors were encountered:
The signature of the parse function is void parse(OutputStream out) and in CmdLineParser a writer is created using the output stream. In the usage, you are showing to use parse(System.err). System.err is an instance of PrintStream. Why can't the parse function directly use PrintStream directly? It is easy to subclass a print stream and pass it to parse instead of OutPutStream which need to handle bytes and flush functionality.
The text was updated successfully, but these errors were encountered: