From 570460e5ee8d7fbbcc27929bd867f093a0ebc776 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 5 Jun 2024 11:57:47 -0400 Subject: [PATCH] Add --version flag to pvcnoded.py for info --- node-daemon/pvcnoded.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/node-daemon/pvcnoded.py b/node-daemon/pvcnoded.py index e18ac112..1de4ce4b 100755 --- a/node-daemon/pvcnoded.py +++ b/node-daemon/pvcnoded.py @@ -19,6 +19,11 @@ # ############################################################################### +from sys import argv import pvcnoded.Daemon # noqa: F401 +if "--version" in argv: + print(pvcnoded.Daemon.version) + exit(0) + pvcnoded.Daemon.entrypoint()