mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
add option to enable logging (#216)
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
@@ -15,7 +15,8 @@ import System.FilePath (combine)
|
||||
|
||||
data ChatOpts = ChatOpts
|
||||
{ dbFile :: String,
|
||||
smpServers :: NonEmpty SMPServer
|
||||
smpServers :: NonEmpty SMPServer,
|
||||
logging :: Bool
|
||||
}
|
||||
|
||||
chatOpts :: FilePath -> Parser ChatOpts
|
||||
@@ -45,6 +46,11 @@ chatOpts appDir =
|
||||
]
|
||||
)
|
||||
)
|
||||
<*> switch
|
||||
( long "log"
|
||||
<> short 'l'
|
||||
<> help "Enable logging"
|
||||
)
|
||||
where
|
||||
defaultDbFilePath = combine appDir "simplex_v1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user