summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-09-09 16:24:26 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-09-09 16:24:26 -0400
commit39cf838d85d378833dd3837ebfd1be881099eb74 (patch)
treed891d668f794dd416c569015934cd0030ef1f962 /Command
parentf59c5df65b9dab6ff79e2414eea9df6f83ec258e (diff)
copy, move, mirror: Support --json and --json-progress.
Diffstat (limited to 'Command')
-rw-r--r--Command/Copy.hs2
-rw-r--r--Command/Mirror.hs2
-rw-r--r--Command/Move.hs2
3 files changed, 3 insertions, 3 deletions
diff --git a/Command/Copy.hs b/Command/Copy.hs
index f48f579ef..56278bde2 100644
--- a/Command/Copy.hs
+++ b/Command/Copy.hs
@@ -14,7 +14,7 @@ import Annex.Wanted
import Annex.NumCopies
cmd :: Command
-cmd = withGlobalOptions (jobsOption : annexedMatchingOptions) $
+cmd = withGlobalOptions (jobsOption : jsonOption : jsonProgressOption : annexedMatchingOptions) $
command "copy" SectionCommon
"copy content of files to/from another repository"
paramPaths (seek <--< optParser)
diff --git a/Command/Mirror.hs b/Command/Mirror.hs
index 1c7b6e396..d08555e79 100644
--- a/Command/Mirror.hs
+++ b/Command/Mirror.hs
@@ -17,7 +17,7 @@ import Annex.NumCopies
import Types.Transfer
cmd :: Command
-cmd = withGlobalOptions ([jobsOption] ++ annexedMatchingOptions) $
+cmd = withGlobalOptions (jobsOption : jsonOption : jsonProgressOption : annexedMatchingOptions) $
command "mirror" SectionCommon
"mirror content of files to/from another repository"
paramPaths (seek <--< optParser)
diff --git a/Command/Move.hs b/Command/Move.hs
index 1ab566770..b44041f6c 100644
--- a/Command/Move.hs
+++ b/Command/Move.hs
@@ -20,7 +20,7 @@ import Annex.NumCopies
import System.Log.Logger (debugM)
cmd :: Command
-cmd = withGlobalOptions (jobsOption : annexedMatchingOptions) $
+cmd = withGlobalOptions (jobsOption : jsonOption : jsonProgressOption : annexedMatchingOptions) $
command "move" SectionCommon
"move content of files to/from another repository"
paramPaths (seek <--< optParser)