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!)
This commit is contained in:
Justin SB
2014-09-09 08:23:17 -07:00
parent 742603f949
commit 452da56297

View File

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