summaryrefslogtreecommitdiff
path: root/Command/RmUrl.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/RmUrl.hs')
-rw-r--r--Command/RmUrl.hs12
1 files changed, 7 insertions, 5 deletions
diff --git a/Command/RmUrl.hs b/Command/RmUrl.hs
index 5287718c5..d7e99587f 100644
--- a/Command/RmUrl.hs
+++ b/Command/RmUrl.hs
@@ -13,12 +13,14 @@ import Logs.Web
import Annex.UUID
import qualified Remote
-cmd :: [Command]
-cmd = [notBareRepo $
- command "rmurl" (paramPair paramFile paramUrl) seek
- SectionCommon "record file is not available at url"]
+cmd :: Command
+cmd = notBareRepo $
+ command "rmurl" SectionCommon
+ "record file is not available at url"
+ (paramPair paramFile paramUrl)
+ (withParams seek)
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek = withPairs start
start :: (FilePath, String) -> CommandStart