Skip to content

Commit

Permalink
mutest: add --version support
Browse files Browse the repository at this point in the history
  • Loading branch information
choppsv1 committed Apr 15, 2024
1 parent f741313 commit e50322c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions munet/mutest/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,12 @@ def main():

args = ap.parse_args()

if args.version:
from importlib import metadata # pylint: disable=C0415

print(metadata.version("munet"))
sys.exit(0)

rundir = args.rundir if args.rundir else "/tmp/mutest"
args.rundir = Path(rundir)
os.environ["MUNET_RUNDIR"] = rundir
Expand Down

0 comments on commit e50322c

Please sign in to comment.