From 7ed6961a0e0ef713c136a9d36f86bc7e31414dc5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 20 Aug 2016 17:59:14 -0400 Subject: http client, and --server --- CmdLine.hs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'CmdLine.hs') diff --git a/CmdLine.hs b/CmdLine.hs index 14bb185..283e768 100644 --- a/CmdLine.hs +++ b/CmdLine.hs @@ -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." -- cgit v1.2.3