summaryrefslogtreecommitdiff
path: root/Command/FromKey.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/FromKey.hs')
-rw-r--r--Command/FromKey.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Command/FromKey.hs b/Command/FromKey.hs
index 78ebb6268..6a3fe3a4a 100644
--- a/Command/FromKey.hs
+++ b/Command/FromKey.hs
@@ -21,10 +21,11 @@ import Network.URI
cmd :: Command
cmd = notDirect $ notBareRepo $
- command "fromkey" (paramPair paramKey paramPath) seek
- SectionPlumbing "adds a file using a specific key"
+ command "fromkey" SectionPlumbing "adds a file using a specific key"
+ (paramPair paramKey paramPath)
+ (withParams seek)
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek ps = do
force <- Annex.getState Annex.force
withWords (start force) ps