summaryrefslogtreecommitdiff
path: root/Command/ContentLocation.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/ContentLocation.hs')
-rw-r--r--Command/ContentLocation.hs11
1 files changed, 6 insertions, 5 deletions
diff --git a/Command/ContentLocation.hs b/Command/ContentLocation.hs
index 10879f5b1..bca73f926 100644
--- a/Command/ContentLocation.hs
+++ b/Command/ContentLocation.hs
@@ -12,12 +12,13 @@ import Command
import CmdLine.Batch
import Annex.Content
-cmd :: [Command]
-cmd = [withOptions [batchOption] $ noCommit $ noMessages $
- command "contentlocation" (paramRepeating paramKey) seek
- SectionPlumbing "looks up content for a key"]
+cmd :: Command
+cmd = withOptions [batchOption] $ noCommit $ noMessages $
+ command "contentlocation" SectionPlumbing
+ "looks up content for a key"
+ (paramRepeating paramKey) (withParams seek)
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek = batchable withKeys start
start :: Batchable Key