summaryrefslogtreecommitdiff
path: root/Command/Map.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Map.hs')
-rw-r--r--Command/Map.hs11
1 files changed, 6 insertions, 5 deletions
diff --git a/Command/Map.hs b/Command/Map.hs
index 75af591d5..955010809 100644
--- a/Command/Map.hs
+++ b/Command/Map.hs
@@ -25,12 +25,13 @@ import qualified Utility.Dot as Dot
-- a link from the first repository to the second (its remote)
data Link = Link Git.Repo Git.Repo
-cmd :: [Command]
-cmd = [dontCheck repoExists $
- command "map" paramNothing seek SectionQuery
- "generate map of repositories"]
+cmd :: Command
+cmd = dontCheck repoExists $
+ command "map" SectionQuery
+ "generate map of repositories"
+ paramNothing (withParams seek)
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek = withNothing start
start :: CommandStart