From fb7a47343aa86ee22fd7dc407520e3aa435a5d54 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Mon, 10 Feb 2020 22:18:29 +0500 Subject: [PATCH] bug fix: cli --- cli/cliParser.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cli/cliParser.py b/cli/cliParser.py index 8d5ed94d9..3fae89593 100755 --- a/cli/cliParser.py +++ b/cli/cliParser.py @@ -54,15 +54,4 @@ class cliParser: parser.add_argument('--userName', help='Email Username.') parser.add_argument('--password', help='Email password.') - ## Get CurrentVersion - with open('/usr/local/CyberCP/version.txt') as file: - file_contents = file.read() - version = re.search('\d.\d', file_contents) - version = version.group() - build = file_contents[-2:] - build = build[0:1] - currentversion = version + '.' + build - parser.add_argument('--version', action='version', version=currentversion) - parser.parse_args(['--version']) - return parser.parse_args() \ No newline at end of file