mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 00:02:28 +00:00
add option to enable logging (#216)
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
1 parent
aef159b097
commit
65b17c9d18
2 files changed
+17
-7
No files matched your search
@@ -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