From 80357eb4d0d179c043786f4cf40af7a6872405d6 Mon Sep 17 00:00:00 2001 From: Ben Dichter Date: Mon, 16 Jan 2023 09:33:12 -0500 Subject: [PATCH] add version arg to cli (#333) --- src/nwbinspector/nwbinspector.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nwbinspector/nwbinspector.py b/src/nwbinspector/nwbinspector.py index 3009e72c9..ae7924a47 100644 --- a/src/nwbinspector/nwbinspector.py +++ b/src/nwbinspector/nwbinspector.py @@ -30,6 +30,7 @@ from .register_checks import InspectorMessage, Importance from .tools import get_s3_urls_and_dandi_paths from .utils import FilePathType, PathType, OptionalListOfStrings, robust_s3_read, calculate_number_of_cpu +from nwbinspector import __version__ INTERNAL_CONFIGS = dict(dandi=Path(__file__).parent / "internal_configs" / "dandi.inspector_config.yaml") @@ -222,6 +223,7 @@ def configure_checks( "When 'path' is a six-digit DANDISet ID, this further specifies which version of " "the DANDISet to inspect." ), ) +@click.version_option(__version__) def inspect_all_cli( path: str, modules: Optional[str] = None,