Skip to content

Commit

Permalink
fix option name
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenceisla committed Jul 7, 2023
1 parent be2bce7 commit 978691a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PostgREST/CLI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ readCLIShowHelp =
where
prefs = O.prefs $ O.showHelpOnError <> O.showHelpOnEmpty
opts = O.info parser $ O.fullDesc <> progDesc
parser = O.helper <*> versionParser <*> exampleParser <*> cliParser
parser = O.helper <*> versionFlag <*> exampleParser <*> cliParser

progDesc =
O.progDesc $
"PostgREST "
<> BS.unpack prettyVersion
<> " / create a REST API to an existing Postgres database"

versionParser =
versionFlag =
O.infoOption ("PostgREST " <> BS.unpack prettyVersion) $
O.long "version"
<> O.short 'v'
Expand Down

0 comments on commit 978691a

Please sign in to comment.