From 3a414c8dddba2f1a23802a4669428fc335a6a151 Mon Sep 17 00:00:00 2001 From: Marlous Kottenhagen Date: Mon, 9 Oct 2023 16:14:58 +0200 Subject: [PATCH] xlsx-cli support dateFormat option hyphenate flag --- packages/xlsx-cli/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/xlsx-cli/index.js b/packages/xlsx-cli/index.js index d64852e..83be8b2 100644 --- a/packages/xlsx-cli/index.js +++ b/packages/xlsx-cli/index.js @@ -53,6 +53,7 @@ function run() { .option('-F, --field-sep ', 'CSV field separator', ",") .option('-R, --row-sep ', 'CSV row separator', "\n") .option('-n, --sheet-rows ', 'Number of rows to process (0=all rows)') + .option('--date-format ', 'output date format, for example yyyy-mm-dd') .option('--codepage ', 'default to specified codepage when ambiguous') .option('--req ', 'require module before processing') .option('--sst', 'generate shared string table for XLS* formats') @@ -148,6 +149,7 @@ function run() { } if (program.sparse) opts.dense = false; else opts.dense = true; if (program.codepage) opts.codepage = +program.codepage; + if (program.dateFormat) opts.dateNF = program.dateFormat; if (program.dev) { opts.WTF = true;