This fixes the command-line programs to not print ExitSuccess when provided
with the --help flag
The root cause of this message is that optparse-applicative throws
ExitSuccess in order to short-circuit the program when the user provides the
--help flag and the handle function prints all exceptions that bubble
through it. This change relocates the handle function to wrap everything
except option parsing.
This fixes the command-line programs to not print
ExitSuccess
when provided with the--help
flagThe root cause of this message is that
optparse-applicative
throwsExitSuccess
in order to short-circuit the program when the user provides the--help
flag and thehandle
function prints all exceptions that bubble through it. This change relocates thehandle
function to wrap everything except option parsing.