Skip to content

Commit

Permalink
Update --input-file CLI docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ghukill committed Dec 13, 2024
1 parent 5efd355 commit 0b9bcc5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,15 @@ ETL_VERSION=### Version number of the TIMDEX ETL infrastructure. This can be us
Usage: -c [OPTIONS]
Options:
-i, --input-file TEXT Filepath for harvested input records to
transform [required]
-i, --input-file TEXT Filepath of input records to transform.
The filename must be in the format
<source>-<YYYY-MM-DD>-<run-type>-extracted-
records-
to-<action><index[optional]>.<extension>.
Examples: 'gisogm-2024-03-28-daily-extracted-
records-to-index.jsonl' or
'alma-2023-01-13-full-extracted-records-to-
index_17.xml'. [required]
--output-file TEXT Filepath to write output TIMDEX JSON records
to. NOTE: this option will be removed when
output to parquet is finalized.
Expand Down
6 changes: 5 additions & 1 deletion transmogrifier/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@
"-i",
"--input-file",
required=True,
help="Filepath for harvested input records to transform",
help="Filepath of input records to transform. The filename must be in the format "
"<source>-<YYYY-MM-DD>-<run-type>-extracted-records-to-<action><index[optional]>"
".<extension>. Examples: 'gisogm-2024-03-28-daily-extracted-records-to-index.jsonl' "
"or 'alma-2023-01-13-full-extracted-records-to-index_17.xml'.",
)
# NOTE: FEATURE FLAG: CLI arg '--output-file' will be removed after v2 work is complete
@click.option(
"--output-file",
required=False,
Expand Down

0 comments on commit 0b9bcc5

Please sign in to comment.