From fffa8c6f3dab3df6d64143bb28ac55ebc6aa6fd6 Mon Sep 17 00:00:00 2001 From: jlw4049 Date: Tue, 23 Jul 2024 16:36:53 -0400 Subject: [PATCH] feat: add -v/--version arg --- dv_check.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dv_check.py b/dv_check.py index 0bf6f99..01dcf76 100644 --- a/dv_check.py +++ b/dv_check.py @@ -35,6 +35,9 @@ def parse_arguments() -> Tuple[Path, Path, Path, bool, bool, Path]: parser.add_argument( "-w", "--working-dir", type=str, help="Directory to store working files in." ) + parser.add_argument( + "-v", "--version", action="version", version=f"%(prog)s {__version__}" + ) parser.add_argument("input", type=str, help="Path to input file.") args = parser.parse_args()