summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-01-13 14:25:30 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-01-13 14:25:30 -0400
commitc747c8e423afe272dcf045abf3f1e8c1f6985e5c (patch)
tree2521170766eeee800de45895cd1df6bb73d3afcd /Command
parent0271693312df2134693562396bd6dd77b32c5e63 (diff)
addurl: Support --json, particularly useful in --batch mode.
Diffstat (limited to 'Command')
-rw-r--r--Command/AddUrl.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs
index 746a6725c..516d50a75 100644
--- a/Command/AddUrl.hs
+++ b/Command/AddUrl.hs
@@ -41,7 +41,7 @@ import qualified Utility.Quvi as Quvi
#endif
cmd :: Command
-cmd = notBareRepo $ withGlobalOptions [jobsOption] $
+cmd = notBareRepo $ withGlobalOptions [jobsOption, jsonOption] $
command "addurl" SectionCommon "add urls to annex"
(paramRepeating paramUrl) (seek <$$> optParser)