Skip to content

Commit bc68a8b

Browse files
author
Mark Funk
committed
Updating reference to argv.o to be the output variable we set. Updating output to point to argv.out instead of argv.o because abbreviations aren't the representation on the argv object
1 parent ec7bebf commit bc68a8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/react-docgen.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ var dir = require('node-dir');
5252
var fs = require('fs');
5353
var parser = require('../dist/main.js');
5454

55-
var output = argv.o;
55+
var output = argv.out;
5656
var paths = argv.path;
5757
var extensions = new RegExp('\\.(?:' + argv.extension.join('|') + ')$');
5858
var ignoreDir = argv.ignoreDir;
@@ -73,8 +73,8 @@ function exitWithResult(result) {
7373
result = argv.pretty ?
7474
JSON.stringify(result, null, 2) :
7575
JSON.stringify(result);
76-
if (argv.o) {
77-
fs.writeFileSync(argv.o, result);
76+
if (output) {
77+
fs.writeFileSync(output, result);
7878
} else {
7979
process.stdout.write(result + '\n');
8080
}

0 commit comments

Comments
 (0)