public
/
html-minifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f35628a
)
fix CLI option name
author
alexlamsl
<alexlamsl@gmail.com>
Thu, 28 Jun 2018 15:41:48 +0000
(23:41 +0800)
committer
alexlamsl
<alexlamsl@gmail.com>
Thu, 28 Jun 2018 15:41:48 +0000
(23:41 +0800)
cli.js
patch
|
blob
|
history
diff --git
a/cli.js
b/cli.js
index
998ccfe
..
84db90b
100755
(executable)
--- a/
cli.js
+++ b/
cli.js
@@
-140,7
+140,7
@@
var mainOptionKeys = Object.keys(mainOptions);
mainOptionKeys.forEach(function(key) {
var option = mainOptions[key];
if (Array.isArray(option)) {
- key = '--' + paramCase(key);
+ key =
key === 'minifyURLs' ? '--minify-urls' :
'--' + paramCase(key);
key += option[1] === parseJSON ? ' [value]' : ' <value>';
program.option(key, option[0], option[1]);
}