summaryrefslogtreecommitdiff
path: root/Command/TransferKey.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/TransferKey.hs')
-rw-r--r--Command/TransferKey.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Command/TransferKey.hs b/Command/TransferKey.hs
index 6da2e742b..de4568f3a 100644
--- a/Command/TransferKey.hs
+++ b/Command/TransferKey.hs
@@ -16,9 +16,10 @@ import qualified Remote
import Types.Remote
cmd :: Command
-cmd = withOptions transferKeyOptions $
- noCommit $ command "transferkey" paramKey seek SectionPlumbing
+cmd = withOptions transferKeyOptions $ noCommit $
+ command "transferkey" SectionPlumbing
"transfers a key from or to a remote"
+ paramKey (withParams seek)
transferKeyOptions :: [Option]
transferKeyOptions = fileOption : fromToOptions
@@ -26,7 +27,7 @@ transferKeyOptions = fileOption : fromToOptions
fileOption :: Option
fileOption = fieldOption [] "file" paramFile "the associated file"
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek ps = do
to <- getOptionField toOption Remote.byNameWithUUID
from <- getOptionField fromOption Remote.byNameWithUUID