Skip to content

Commit 9a138d4

Browse files
authored
Update main.cpp closes #466
1 parent 5d684a3 commit 9a138d4

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

commandLine/src/main.cpp

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,26 @@ int main(int argc, char** argv){
347347
bVerbose = true;
348348
}
349349

350+
if (options[TEMPLATE].count() > 0){
351+
if (options[TEMPLATE].arg != NULL){
352+
string templateString(options[TEMPLATE].arg);
353+
templateName = templateString;
354+
}
355+
}
356+
350357
if (options[PLATFORMS].count() > 0){
351358
if (options[PLATFORMS].arg != NULL){
352359
string platformString(options[PLATFORMS].arg);
353360
addPlatforms(platformString);
354361
}
355362
}
356363

364+
//fix as we want to treat vscode as a platform not a template
365+
if( templateName == "vscode" ){
366+
templateName = "";
367+
addPlatform("vscode");
368+
}
369+
357370
if (options[ADDONS].count() > 0){
358371
bAddonsPassedIn = true; // could be empty
359372
if (options[ADDONS].arg != NULL){
@@ -380,13 +393,6 @@ int main(int argc, char** argv){
380393
}
381394
}
382395

383-
if (options[TEMPLATE].count() > 0){
384-
if (options[TEMPLATE].arg != NULL){
385-
string templateString(options[TEMPLATE].arg);
386-
templateName = templateString;
387-
}
388-
}
389-
390396
if (parse.nonOptionsCount() > 0){
391397
projectName = parse.nonOption(0);
392398
}

0 commit comments

Comments
 (0)