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 picocli.CommandLine.DefaultExceptionHandler#internalHandleParseException looked like it should be sufficient for printing a suitable error message, but why isn't it working? I double checked it's writing to the PrintWriter that's backed by the correct System.err object. It turns out the internal handler writes without flushing, and the PrintWriter we provide from com.instaclustr.picocli.CLIApplication#execute(picocli.CommandLine, java.lang.String...) does not have auto-flush turned on, so the error output gets lost.
While debugging, I could manually flush the writers to obtain the output:
Describe the bug
Invalid
--jmx-
prefixed options causes the program to exit with no error message.To Reproduce
java -jar minotaur.jar -s some-dc --jmx-bad
Expected behavior
Like non-JMX options, it should print the error
Unknown option: '--jmx-bad'
followed by usage instructions.System and versions:
The text was updated successfully, but these errors were encountered: