Use fully qualified names in generic types (#544)

* Also fixes infinite parser loops
* Also implements command line option forwarding to node.js
This commit is contained in:
Daniel Wirtz
2019-03-25 21:58:19 +01:00
committed by GitHub
parent 74ce9bf386
commit 527d73ece8
24 changed files with 1153 additions and 1090 deletions

View File

@ -182,6 +182,9 @@
"type": "b",
"default": false
},
" ...": {
"description": "Specifies node.js options (CLI only). See: node --help"
},
"-Os": { "value": { "optimize": true, "shrinkLevel": 1 } },
"-Oz": { "value": { "optimize": true, "shrinkLevel": 2 } },
"-O0": { "value": { "optimizeLevel": 0, "shrinkLevel": 0 } },

View File

@ -18,6 +18,7 @@ function parse(argv, config) {
// make an alias map and initialize defaults
var aliases = {};
Object.keys(config).forEach(key => {
if (key.startsWith(" ")) return;
var option = config[key];
if (option.alias != null) {
if (typeof option.alias === "string") aliases[option.alias] = key;