Skip to content

Commit

Permalink
Fix wrong output file option in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm authored Apr 21, 2020
1 parent 685f5ef commit 755d70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 755d70c

Please sign in to comment.