From d46f7fc352e270671dd082419392d66038a7bcf8 Mon Sep 17 00:00:00 2001 From: Ilya Radchenko Date: Thu, 4 Jun 2015 16:37:59 -0400 Subject: [PATCH] v2.4.0 Also fix rename to -t, since -h is help --- README.md | 1 + bin/json2csv.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fb9f4f64..6ce10e63 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,7 @@ Options: -l, --fieldList [list] Specify a file with a list of fields to include. One field per line. -d, --delimiter [delim] Specify a delimiter other than the default comma to use. -e, --eol [value] Specify an EOL value after each row. + -t, --header Disable the column name header -p, --pretty Use only when printing to console. Logs output in pretty tables. ``` diff --git a/bin/json2csv.js b/bin/json2csv.js index ebc72dea..d0ceba1d 100755 --- a/bin/json2csv.js +++ b/bin/json2csv.js @@ -16,7 +16,7 @@ program .option('-l, --fieldList [list]', 'Specify a file with a list of fields to include. One field per line.') .option('-d, --delimiter [delimiter]', 'Specify a delimiter other than the default comma to use.') .option('-e, --eol [value]', 'Specify an EOL value after each row.') - .option('-h, --header', 'Disable the column name header') + .option('-t, --header', 'Disable the column name header') .option('-p, --pretty', 'Use only when printing to console. Logs output in pretty tables.') .parse(process.argv); diff --git a/package.json b/package.json index acbc176e..dc4695df 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "json2csv", "preferGlobal": "true", - "version": "2.3.0", + "version": "2.4.0", "description": "Convert json to csv with column titles", "keywords": [ "json",