summaryrefslogtreecommitdiffhomepage
path: root/CmdLine.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-12 12:10:41 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-12 12:10:41 -0400
commitecc967a33fbd4724f5782f6d6b858b3df103b134 (patch)
treed7fc098e08f558170db2c6979dfd2f300e9b559d /CmdLine.hs
parent3ee306d3d4bda52268f07df874070b65d171694e (diff)
downloadkeysafe-ecc967a33fbd4724f5782f6d6b858b3df103b134.tar.gz
prompt for name
Diffstat (limited to 'CmdLine.hs')
-rw-r--r--CmdLine.hs6
1 files changed, 0 insertions, 6 deletions
diff --git a/CmdLine.hs b/CmdLine.hs
index 2b494db..b47d609 100644
--- a/CmdLine.hs
+++ b/CmdLine.hs
@@ -11,7 +11,6 @@ import qualified Data.ByteString.UTF8 as BU8
data CmdLine = CmdLine
{ mode :: Mode
- , name :: Name
, keytype :: KeyType
, testMode :: Bool
, gui :: Bool
@@ -24,7 +23,6 @@ data Mode = Backup | Restore
parse :: Parser CmdLine
parse = CmdLine
<$> (backup <|> restore)
- <*> nameopt
<*> keytypeopt
<*> testmodeswitch
<*> guiswitch
@@ -37,10 +35,6 @@ parse = CmdLine
( long "restore"
<> help "Retrieve a secret key from keysafe."
)
- nameopt = Name . BU8.fromString <$> strOption
- ( long "name"
- <> help "Some name that is associated with the key. Should be something you can remember when restoring it."
- )
keytypeopt = KeyType . BU8.fromString <$> strOption
( long "type"
<> help "Type of key (eg, \"gpg\")."