addurl: Support --json, particularly useful in --batch mode.

This commit is contained in:
Joey Hess 2016-01-13 14:25:30 -04:00
parent ecd0684bfc
commit 1d5b70db9c
Failed to extract signature
4 changed files with 10 additions and 1 deletions

View file

@ -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)