Instead of using ioError . userError, we format the error ourselves.
This is nicer - no ‘)’ at the end of the output.
os arch
exitWith ExitSuccess
return resu
- (_, _, errs) ->
- ioError (userError (concat errs ++ usageHelp progname options))
+ (_, _, errs) -> do
+ hPutStrLn stderr $ "Command line error: " ++ concat errs
+ hPutStrLn stderr $ usageHelp progname options
+ exitWith $ ExitFailure 2
-- | Parse the environment and return the node\/instance names.
--