summaryrefslogtreecommitdiffhomepage
path: root/CmdLine.hs
diff options
context:
space:
mode:
Diffstat (limited to 'CmdLine.hs')
-rw-r--r--CmdLine.hs8
1 files changed, 6 insertions, 2 deletions
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."