Skip to content

Commit

Permalink
Add version argument
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Walter <[email protected]>
  • Loading branch information
twwd committed Sep 11, 2024
1 parent 2a32d5b commit b84875f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kcwarden/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
import sys
from importlib.metadata import version

from kcwarden.subcommands import download, audit, configuration, review
from kcwarden.utils.arguments import is_dir
Expand All @@ -22,6 +23,8 @@ def get_parsers() -> argparse.ArgumentParser:
description="Keycloak configuration auditor",
)

parser.add_argument("--version", action="version", version=f"%(prog)s {version('kcwarden')}")

subparsers = parser.add_subparsers(required=True)

#
Expand Down

0 comments on commit b84875f

Please sign in to comment.