core: agent stats (#1650)

This commit is contained in:
Evgeny Poberezkin
2022-12-26 22:24:34 +00:00
committed by GitHub
parent e48452ccff
commit 74245d3f2b
9 changed files with 30 additions and 7 deletions
+10 -1
View File
@@ -34,6 +34,7 @@ data ChatOpts = ChatOpts
chatCmd :: String,
chatCmdDelay :: Int,
chatServerPort :: Maybe String,
optFilesFolder :: Maybe FilePath,
allowInstantFiles :: Bool,
maintenance :: Bool
}
@@ -127,9 +128,16 @@ chatOpts appDir defaultDbFileName = do
<> help "Run chat server on specified port"
<> value Nothing
)
optFilesFolder <-
optional $
strOption
( long "files-folder"
<> metavar "FOLDER"
<> help "Folder to use for sent and received files"
)
allowInstantFiles <-
switch
( long "--allow-instant-files"
( long "allow-instant-files"
<> short 'f'
<> help "Send and receive instant files without acceptance"
)
@@ -151,6 +159,7 @@ chatOpts appDir defaultDbFileName = do
chatCmd,
chatCmdDelay,
chatServerPort,
optFilesFolder,
allowInstantFiles,
maintenance
}