diff options
Diffstat (limited to 'CmdLine.hs')
-rw-r--r-- | CmdLine.hs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -38,6 +38,7 @@ data ServerConfig = ServerConfig { serverPort :: Port , serverAddress :: String , monthsToFillHalfDisk :: Integer + , serverMotd :: Maybe T.Text } parse :: Parser CmdLine @@ -185,6 +186,11 @@ parseServerConfig = ServerConfig <> showDefault <> help "Server rate-limits requests and requires proof of work, to avoid too many objects being stored. This is an lower bound on how long it could possibly take for half of the current disk space to be filled." ) + <*> optional (T.pack <$> strOption + ( long "motd" + <> metavar "MESSAGE" + <> help "The server's Message Of The Day." + )) get :: IO CmdLine get = execParser opts |