summaryrefslogtreecommitdiff
path: root/Command/FindRef.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/FindRef.hs')
-rw-r--r--Command/FindRef.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Command/FindRef.hs b/Command/FindRef.hs
index 3f09cd6b3..cd7583b96 100644
--- a/Command/FindRef.hs
+++ b/Command/FindRef.hs
@@ -12,10 +12,11 @@ import qualified Command.Find as Find
cmd :: Command
cmd = withOptions nonWorkTreeMatchingOptions $ Find.mkCommand $
- command "findref" paramRef seek SectionPlumbing
+ command "findref" SectionPlumbing
"lists files in a git ref"
+ paramRef (withParams seek)
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek refs = do
format <- Find.getFormat
Find.start format `withFilesInRefs` refs