Skip to content

Commit

Permalink
Merge pull request #339 from smart-on-fhir/mikix/version
Browse files Browse the repository at this point in the history
Add --version arg
  • Loading branch information
mikix authored Aug 23, 2024
2 parents 4d7cf97 + 1a99366 commit 9d1dfe5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cumulus_etl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Turns FHIR data into de-identified & aggregated records"""

__version__ = "1.2.0"
__version__ = "1.3.0"
4 changes: 4 additions & 0 deletions cumulus_etl/etl/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import rich
import rich.table

import cumulus_etl
from cumulus_etl import cli_utils, common, deid, errors, fhir, loaders, store
from cumulus_etl.etl import context, tasks
from cumulus_etl.etl.config import JobConfig, JobSummary
Expand Down Expand Up @@ -92,6 +93,9 @@ def define_etl_parser(parser: argparse.ArgumentParser) -> None:
parser.add_argument("dir_input", metavar="/path/to/input")
parser.add_argument("dir_output", metavar="/path/to/output")
parser.add_argument("dir_phi", metavar="/path/to/phi")
parser.add_argument(
"--version", action="version", version=f"cumulus-etl {cumulus_etl.__version__}"
)
parser.add_argument(
"--input-format",
default="ndjson",
Expand Down

0 comments on commit 9d1dfe5

Please sign in to comment.