summaryrefslogtreecommitdiff
path: root/Command/InitRemote.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/InitRemote.hs')
-rw-r--r--Command/InitRemote.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Command/InitRemote.hs b/Command/InitRemote.hs
index 7831fe22a..a3a946944 100644
--- a/Command/InitRemote.hs
+++ b/Command/InitRemote.hs
@@ -19,12 +19,13 @@ import Logs.Trust
import Data.Ord
-cmd :: [Command]
-cmd = [command "initremote"
+cmd :: Command
+cmd = command "initremote" SectionSetup
+ "creates a special (non-git) remote"
(paramPair paramName $ paramOptional $ paramRepeating paramKeyValue)
- seek SectionSetup "creates a special (non-git) remote"]
+ (withParams seek)
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek = withWords start
start :: [String] -> CommandStart