File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments