Skip to content

Commit 1ff8abd

Browse files
committed
Add ability to check virtac version
This was added as the CI container build wanted to check the version to verify container build
1 parent d42d146 commit 1ff8abd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/virtac/atip_ioc_entry.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
from cothread.catools import ca_nothing, caget
1010
from softioc import builder, softioc
1111

12+
from atip import __version__
13+
1214
from . import atip_server
1315

1416
LOG_FORMAT = "%(asctime)s %(message)s"
@@ -44,6 +46,11 @@ def parse_arguments():
4446
help="Increase logging verbosity",
4547
action="store_true",
4648
)
49+
parser.add_argument(
50+
"--version",
51+
action="version",
52+
version=__version__,
53+
)
4754
return parser.parse_args()
4855

4956

0 commit comments

Comments
 (0)