mirror of
https://github.com/ilyakooo0/optparse-applicative.git
synced 2024-11-22 22:18:13 +03:00
Don't show help text on InfoMsg.
This commit is contained in:
parent
908356897a
commit
512b7c1f79
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user