Skip to content

Commit 80357eb

Browse files
authored
add version arg to cli (#333)
1 parent 62ab98a commit 80357eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nwbinspector/nwbinspector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from .register_checks import InspectorMessage, Importance
3131
from .tools import get_s3_urls_and_dandi_paths
3232
from .utils import FilePathType, PathType, OptionalListOfStrings, robust_s3_read, calculate_number_of_cpu
33+
from nwbinspector import __version__
3334

3435
INTERNAL_CONFIGS = dict(dandi=Path(__file__).parent / "internal_configs" / "dandi.inspector_config.yaml")
3536

@@ -222,6 +223,7 @@ def configure_checks(
222223
"When 'path' is a six-digit DANDISet ID, this further specifies which version of " "the DANDISet to inspect."
223224
),
224225
)
226+
@click.version_option(__version__)
225227
def inspect_all_cli(
226228
path: str,
227229
modules: Optional[str] = None,

0 commit comments

Comments
 (0)