diff options
Diffstat (limited to 'Command/Mirror.hs')
-rw-r--r-- | Command/Mirror.hs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Command/Mirror.hs b/Command/Mirror.hs index 535dc64b6..f0880e87e 100644 --- a/Command/Mirror.hs +++ b/Command/Mirror.hs @@ -16,14 +16,16 @@ import qualified Remote import Annex.Content import Annex.NumCopies -cmd :: [Command] -cmd = [withOptions mirrorOptions $ command "mirror" paramPaths seek - SectionCommon "mirror content of files to/from another repository"] +cmd :: Command +cmd = withOptions mirrorOptions $ + command "mirror" SectionCommon + "mirror content of files to/from another repository" + paramPaths (withParams seek) mirrorOptions :: [Option] mirrorOptions = fromToOptions ++ [jobsOption] ++ annexedMatchingOptions ++ keyOptions -seek :: CommandSeek +seek :: CmdParams -> CommandSeek seek ps = do to <- getOptionField toOption Remote.byNameWithUUID from <- getOptionField fromOption Remote.byNameWithUUID |