Skip to content

Commit e706c25

Browse files
aosaimyknownasilya
authored andcommitted
fix: unwind parameter in command line mode (#191)
1 parent ff514ba commit e706c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/json2csv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ getFields(function (err, fields) {
130130
}
131131

132132
if (program.unwindPath) {
133-
opts.unwindPath = program.fields.split(',');
133+
opts.unwindPath = program.unwindPath.split(',');
134134
}
135135

136136
var csv = json2csv(opts);

0 commit comments

Comments
 (0)