Merge pull request #172 from GaloisInc/master
Show long help output with defaults on usage errors
This commit is contained in:
+2
-1
@@ -32,7 +32,8 @@ main = do
|
|||||||
<> prettyVersion
|
<> prettyVersion
|
||||||
<> " / create a REST API to an existing Postgres database"
|
<> " / create a REST API to an existing Postgres database"
|
||||||
)
|
)
|
||||||
conf <- execParser opts
|
parserPrefs = prefs showHelpOnError
|
||||||
|
conf <- customExecParser parserPrefs opts
|
||||||
let port = configPort conf
|
let port = configPort conf
|
||||||
|
|
||||||
unless (configSecure conf) $
|
unless (configSecure conf) $
|
||||||
|
|||||||
Reference in New Issue
Block a user