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:
+2
-1
@@ -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) $
|
||||
|
||||
Reference in New Issue
Block a user