Make postgrest show long help output with defaults on usage errors

This makes optparse-applicative show the long version of help output.
Its default behavior is not to do this since the showHelpOnError
setting defaults to False.  This turns it on.
This commit is contained in:
Jonathan Daugherty
2015-03-16 13:27:22 -07:00
parent a9bc119b82
commit 6dfbe854a0
+2 -1
View File
@@ -32,7 +32,8 @@ main = do
<> prettyVersion
<> " / create a REST API to an existing Postgres database"
)
conf <- execParser opts
parserPrefs = prefs showHelpOnError
conf <- customExecParser parserPrefs opts
let port = configPort conf
unless (configSecure conf) $