Skip to content

Commit

Permalink
fix(cli): pass BOM cli option to function (#193)
Browse files Browse the repository at this point in the history
+ program.withBom is where commander stores the --with-bom option, instead of withBOM, which is the functions internal representation of this option.
  • Loading branch information
rubillionaire authored and knownasilya committed Aug 3, 2017
1 parent 2d8f13b commit 70cfdfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/json2csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ getFields(function (err, fields) {
defaultValue: program.defaultValue,
flatten: program.flatten,
includeEmptyRows: program.includeEmptyRows,
withBOM: program.withBOM
withBOM: program.withBom
};

if (program.delimiter) {
Expand Down

0 comments on commit 70cfdfe

Please sign in to comment.