Skip to content

Commit 70cfdfe

Browse files
rubillionaireknownasilya
authored andcommitted
fix(cli): pass BOM cli option to function (#193)
+ program.withBom is where commander stores the --with-bom option, instead of withBOM, which is the functions internal representation of this option.
1 parent 2d8f13b commit 70cfdfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/json2csv.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ getFields(function (err, fields) {
114114
defaultValue: program.defaultValue,
115115
flatten: program.flatten,
116116
includeEmptyRows: program.includeEmptyRows,
117-
withBOM: program.withBOM
117+
withBOM: program.withBom
118118
};
119119

120120
if (program.delimiter) {

0 commit comments

Comments
 (0)