diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 79dca36df..7216302b6 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,7 +1,7 @@ Unreleased ---------- -* :doc:`/scripts/in2csv` adds a :code:`--reset-dimensions` option to `recalculate `_ the dimensions of an XLSX file, instead of trusting the file's metadata. +* :doc:`/scripts/in2csv` adds a :code:`--reset-dimensions` option to `recalculate `_ the dimensions of an XLSX file, instead of trusting the file's metadata. csvkit's dependency `agate-excel `_ 0.4.0 automatically recalculates the dimensions if the file's metadata expresses dimensions of "A1:A1" (a single cell). 1.3.0 - October 18, 2023 ------------------------ diff --git a/csvkit/utilities/in2csv.py b/csvkit/utilities/in2csv.py index e826acfea..9ee188e18 100644 --- a/csvkit/utilities/in2csv.py +++ b/csvkit/utilities/in2csv.py @@ -50,7 +50,7 @@ def add_arguments(self): '--use-sheet-names', dest='use_sheet_names', action='store_true', help='Use the sheet names as file names when --write-sheets is set.') self.argparser.add_argument( - '--reset-dimensions', dest='reset_dimensions', action='store_true', + '--reset-dimensions', dest='reset_dimensions', action='store_true', default=None, help='Ignore the sheet dimensions provided by the XLSX file.') self.argparser.add_argument( '--encoding-xls', dest='encoding_xls',