Skip to content

Commit

Permalink
add version arg to cli (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter authored Jan 16, 2023
1 parent 62ab98a commit 80357eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nwbinspector/nwbinspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 80357eb

Please sign in to comment.