diff options
Diffstat (limited to 'node_modules/html-minifier/cli.js')
-rwxr-xr-x | node_modules/html-minifier/cli.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/node_modules/html-minifier/cli.js b/node_modules/html-minifier/cli.js index 1f208bd59..84db90b8c 100755 --- a/node_modules/html-minifier/cli.js +++ b/node_modules/html-minifier/cli.js @@ -139,13 +139,16 @@ var mainOptions = { var mainOptionKeys = Object.keys(mainOptions); mainOptionKeys.forEach(function(key) { var option = mainOptions[key]; - key = '--' + paramCase(key); if (Array.isArray(option)) { - var optional = option[1] === parseJSON; - program.option(key + (optional ? ' [value]' : ' <value>'), option[0], option[1]); + key = key === 'minifyURLs' ? '--minify-urls' : '--' + paramCase(key); + key += option[1] === parseJSON ? ' [value]' : ' <value>'; + program.option(key, option[0], option[1]); + } + else if (~['html5', 'includeAutoGeneratedTags'].indexOf(key)) { + program.option('--no-' + paramCase(key), option); } else { - program.option(key, option); + program.option('--' + paramCase(key), option); } }); program.option('-o --output <file>', 'Specify output file (if not specified STDOUT will be used for output)'); |