Skip to content

Commit

Permalink
Update cli.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm authored Apr 21, 2020
1 parent 755d70c commit e527cd2
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 @@ -153,7 +153,7 @@ function run() {
let template = fs.readFileSync(templatePath).toString();
let output = ejs.render(template, vals, opts);
if (pOpts['output-file']) {
fs.writeFileSync(pOpts.outputFile, output);
fs.writeFileSync(pOpts['output-file'], output);
}
else {
process.stdout.write(output);
Expand Down

0 comments on commit e527cd2

Please sign in to comment.