Don't show help text on InfoMsg.

This commit is contained in:
Ian Grant Jeffries 2018-10-01 14:32:12 -04:00 committed by Huw Campbell
parent 908356897a
commit 512b7c1f79

View File

@ -282,6 +282,7 @@ parserFailure pprefs pinfo msg ctx = ParserFailure $ \progn ->
ShowHelpText -> True
MissingError CmdStart _ | prefShowHelpOnEmpty pprefs
-> True
InfoMsg _ -> False
_ -> prefShowHelpOnError pprefs
renderFailure :: ParserFailure ParserHelp -> String -> (String, ExitCode)