From 46eaccaff86bf81cb5cf399f7daba0c2f87fcef7 Mon Sep 17 00:00:00 2001 From: Ryan Gerstenkorn Date: Tue, 22 May 2018 11:37:41 -0500 Subject: [PATCH] Revert "Add option to update projects individually" This reverts commit 077e1f24e58dbc72195699da848f4388d6a2d472. Which wasn't supposed to be pushed and isn't actually usefull --- scripts/sync.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/sync.js b/scripts/sync.js index fd3dc951616f..bd4313841a7b 100644 --- a/scripts/sync.js +++ b/scripts/sync.js @@ -4,23 +4,16 @@ const fs = require('fs-extra') const config = require('../lib/config') const util = require('../lib/util') +const projectNames = config.projectNames.filter((project) => config.projects[project].ref) + program .version(process.env.npm_package_version) - .option('--project ', 'run on specific project') .option('--gclient_file ', 'gclient config file location') .option('--run_hooks', 'run gclient hooks') .option('--run_sync', 'run gclient sync') .option('--submodule_sync', 'run submodule sync') .option('--init', 'initialize all dependencies') .option('--all', 'update all projects') - -let projectNames = config.projectNames.filter((project) => config.projects[project].ref) - -program.parse(process.argv) - -if (program.project) { - projectNames = [program.project] -} projectNames.forEach((project) => { program.option('--' + project + '_ref ', project + ' ref to checkout') })