diff options
Diffstat (limited to 'CmdLine.hs')
-rw-r--r-- | CmdLine.hs | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -17,12 +17,12 @@ data CmdLine = CmdLine } deriving (Show) -data Mode = Backup | Restore +data Mode = Backup | Restore | Benchmark deriving (Show) parse :: Parser CmdLine parse = CmdLine - <$> (backup <|> restore) + <$> (backup <|> restore <|> benchmark) <*> keytypeopt <*> testmodeswitch <*> guiswitch @@ -35,6 +35,10 @@ parse = CmdLine ( long "restore" <> help "Retrieve a secret key from keysafe." ) + benchmark = flag' Benchmark + ( long "benchmark" + <> help "Benchmark speed of keysafe's cryptographic primitives." + ) keytypeopt = KeyType . BU8.fromString <$> strOption ( long "type" <> help "Type of key (eg, \"gpg\")." |