Skip to content

Commit 80a2c35

Browse files
committed
Release 0.1.0
1 parent c270929 commit 80a2c35

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

check_vmware_nsxt.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
from urllib.parse import urljoin
4141

4242

43+
VERSION = '0.1.0'
44+
4345
OK = 0
4446
WARNING = 1
4547
CRITICAL = 2
@@ -393,6 +395,8 @@ def parse_args():
393395

394396
args.add_argument('--mode', '-m', help='Check mode', required=True)
395397

398+
args.add_argument('--version', '-V', help='Print version', action='store_true')
399+
396400
return args.parse_args()
397401

398402

@@ -401,6 +405,10 @@ def main():
401405

402406
args = parse_args()
403407

408+
if args.version:
409+
print("check_vmware_nsxt version %s" % VERSION)
410+
return 0
411+
404412
client = Client(args.api, args.username, args.password)
405413

406414
if args.mode == 'cluster-status':

0 commit comments

Comments
 (0)