From 308d2430a860f3847ae083446479ab7874061868 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Fri, 8 Aug 2025 14:14:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20--help?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The --help text mentioned the INPUT arguments which were renamed to METS_FILES. Update the text so it fits the renamed arguments. Fixes gh-44. --- src/mods4pandas/mods4pandas.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/mods4pandas/mods4pandas.py b/src/mods4pandas/mods4pandas.py index e947657..4dde5fc 100755 --- a/src/mods4pandas/mods4pandas.py +++ b/src/mods4pandas/mods4pandas.py @@ -544,14 +544,17 @@ def validate_mets_files(ctx, param, mets_files): ) def process_command(mets_files: list[str], output_file: str, output_page_info: str, mets_files_list: str): """ - A tool to convert the MODS metadata in INPUT to a pandas DataFrame. + A tool to convert the MODS metadata in METS_FILES to a pandas DataFrame. - INPUT is assumed to be a METS document with MODS metadata. INPUT may optionally be a directory. The tool then reads - all files in the directory. + METS_FILES is assumed to be one or more METS documents with MODS metadata. + METS_FILES may optionally be a directory. The tool then reads all files in the + directory. - mods4pandas writes two output files: A pandas DataFrame (as Parquet) and a CSV file with all conversion warnings. + mods4pandas writes two output files: A pandas DataFrame (in Parquet format) + and a CSV file with all conversion warnings. - Per-page information (e.g. structure information) can be output to a separate Parquet file. + Per-page information (e.g. structure information) can be output to a + separate Parquet file. """ process(mets_files, output_file, output_page_info, mets_files_list)