diff options
Diffstat (limited to 'CmdLine.hs')
-rw-r--r-- | CmdLine.hs | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -21,12 +21,12 @@ data CmdLine = CmdLine , customShareParams :: Maybe ShareParams } -data Mode = Backup | Restore | UploadQueued | Benchmark +data Mode = Backup | Restore | UploadQueued | Server | Benchmark deriving (Show) parse :: Parser CmdLine parse = CmdLine - <$> optional (backup <|> restore <|> uploadqueued <|> benchmark) + <$> optional (backup <|> restore <|> uploadqueued <|> server <|> benchmark) <*> optional (gpgswitch <|> fileswitch) <*> localstorageswitch <*> guiswitch @@ -45,6 +45,10 @@ parse = CmdLine ( long "uploadqueued" <> help "Upload any data to servers that was queued by a previous --backup run." ) + server = flag' Server + ( long "server" + <> help "Run as a keysafe server, accepting objects and storing them to ~/.keysafe/objects/local/" + ) benchmark = flag' Benchmark ( long "benchmark" <> help "Benchmark speed of keysafe's cryptographic primitives." |