Fix wrong output file option in cli

This commit is contained in:
Sunny Luo
2020-04-21 15:08:11 +08:00
committed by GitHub
parent 685f5ef0bc
commit 755d70c170

View File

@@ -152,7 +152,7 @@ function run() {
let template = fs.readFileSync(templatePath).toString();
let output = ejs.render(template, vals, opts);
if (pOpts.outputFile) {
if (pOpts['output-file']) {
fs.writeFileSync(pOpts.outputFile, output);
}
else {