From 452da56297390cbc37d8c2a810ff097fee61ba08 Mon Sep 17 00:00:00 2001 From: Justin SB Date: Tue, 9 Sep 2014 08:23:17 -0700 Subject: [PATCH] Allow passing of arguments to configure-android Args are passed through to the android tool Useful commands: configure-android avd configure-android list avd configure-android -- delete avd --name meteor (Note the extra -- to delineate the args) (Note #2: the delete avd command doesn't seem to actually work, though this appears to be an Android bug - it says that is has deleted it, but it is still there!) --- tools/commands-cordova.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index f432079aac..0e35200f7d 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -878,8 +878,14 @@ main.registerCommand({ name: "configure-android", options: { verbose: { type: Boolean, short: "v" } - } + }, + minArgs: 0, + maxArgs: Infinity }, function (options) { - return execFileSyncOrThrow(localAndroid, [], options); + cordova.setVerboseness(options.verbose); + + var androidArgs = options.args || []; + var execOptions = { pipeOutput: true, verbose: options.verbose }; + execFileSyncOrThrow(localAndroid, androidArgs, execOptions); });