diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-20 17:59:14 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-20 17:59:14 -0400 |
commit | 7ed6961a0e0ef713c136a9d36f86bc7e31414dc5 (patch) | |
tree | 591fd6c5f60276c946962f8af27ec3def5d9b303 /CmdLine.hs | |
parent | 3633c44893bfbd50f25b84ac353012975388332c (diff) | |
download | keysafe-7ed6961a0e0ef713c136a9d36f86bc7e31414dc5.tar.gz |
http client, and --server
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." |