From f7c10e72531848d9e3b35cf5392ed965380f6ed1 Mon Sep 17 00:00:00 2001 From: John Palmer <32370730+jpalmer37@users.noreply.github.com> Date: Tue, 2 Jul 2024 17:11:07 -0400 Subject: [PATCH] enable easier provenance collection (#27) Co-authored-by: John Palmer --- fluviewer/cli_args.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fluviewer/cli_args.py b/fluviewer/cli_args.py index f009109..61fc746 100644 --- a/fluviewer/cli_args.py +++ b/fluviewer/cli_args.py @@ -2,6 +2,8 @@ import os from pathlib import Path +from . import __version__ + def parse_args(): """ Parse command line arguments using argparse. @@ -27,6 +29,7 @@ def parse_args(): parser.add_argument('-M', '--max-memory', type=int, metavar="[1-]", help='Gigabytes of memory allocated for normalizing reads (default=max)') parser.add_argument('-g', '--disable-garbage-collection', action='store_true', help='Disable garbage collection and retain intermediate analysis files') parser.add_argument('--log-level', default='info', choices=['info', 'debug'], help='Log level (default=info)') + parser.add_argument('--version', action='version', version=__version__) args = parser.parse_args()