add --tasks-json cli flag - closes #584