Skip to content

Commit

Permalink
Add --version option to show abi3audit version information (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsfulton authored Nov 20, 2024
1 parent 93fa9ac commit 3aae6fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions abi3audit/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
from abi3audit._object import SharedObject
from abi3audit._state import console, status

from . import __version__

logger = logging.getLogger(__name__)
logging.basicConfig(
level=os.environ.get("ABI3AUDIT_LOGLEVEL", "INFO").upper(),
Expand Down Expand Up @@ -175,6 +177,7 @@ def main() -> None:
prog="abi3audit",
description="Scans Python extensions for abi3 violations and inconsistencies",
)
parser.add_argument("-V", "--version", action="version", version=f"%(prog)s {__version__}")
parser.add_argument(
"specs",
metavar="SPEC",
Expand Down

0 comments on commit 3aae6fd

Please sign in to comment.