Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CB-6676 allow extra params to build/run and ignore them
  • Loading branch information
purplecabbage committed May 14, 2014
1 parent df69b96 commit a423cef344d79458c246a88cc5580185dec07d82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
@@ -214,11 +214,6 @@ if (args.Count() > 0) {
Usage();
WScript.Quit(2);
}
else if (args.Count() > 1) {
Log("Error: Too many arguments.", true);
Usage();
WScript.Quit(2);
}
else if (fso.FolderExists(ROOT)) {
if (!is_cordova_project(ROOT)) {
Log('Error: .csproj file not found in ' + ROOT, true);
@@ -286,9 +286,9 @@ function run(path) {


if (args.Count() > 0) {
// limit args
if (args.Count() > 2) {
Log('Error: Too many arguments.', true);
// support help flags
if (args(0) == "--help" || args(0) == "/?" ||
args(0) == "help" || args(0) == "-help" || args(0) == "/help") {
Usage();
WScript.Quit(2);
}
@@ -313,12 +313,6 @@ if (args.Count() > 0) {
else if (args(i).substr(0,9) == "--target=") {
device_id = args(i).split("--target=").join("");
deploy_type = TARGET;
}
// support help flags
else if (args(0) == "--help" || args(0) == "/?" ||
args(0) == "help" || args(0) == "-help" || args(0) == "/help") {
Usage();
WScript.Quit(2);
}
else {
Log('Error: \"' + args(0) + '\" is not recognized as a deploy option', true);

0 comments on commit a423cef

Please sign in to comment.