summaryrefslogtreecommitdiff
path: root/Command/Indirect.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Indirect.hs')
-rw-r--r--Command/Indirect.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Command/Indirect.hs b/Command/Indirect.hs
index 1d703d2f3..c12c91a48 100644
--- a/Command/Indirect.hs
+++ b/Command/Indirect.hs
@@ -22,12 +22,12 @@ import Annex.CatFile
import Annex.Init
import qualified Command.Add
-cmd :: [Command]
-cmd = [notBareRepo $ noDaemonRunning $
- command "indirect" paramNothing seek
- SectionSetup "switch repository to indirect mode"]
+cmd :: Command
+cmd = notBareRepo $ noDaemonRunning $
+ command "indirect" SectionSetup "switch repository to indirect mode"
+ paramNothing (withParams seek)
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek = withNothing start
start :: CommandStart