We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3858416 commit cb254ffCopy full SHA for cb254ff
1 file changed
cli/cliParser.py
@@ -54,15 +54,4 @@ def prepareArguments(self):
54
parser.add_argument('--userName', help='Email Username.')
55
parser.add_argument('--password', help='Email password.')
56
57
- ## Get CurrentVersion
58
- with open('/usr/local/CyberCP/version.txt') as file:
59
- file_contents = file.read()
60
- version = re.search('\d.\d', file_contents)
61
- version = version.group()
62
- build = file_contents[-2:]
63
- build = build[0:1]
64
- currentversion = version + '.' + build
65
- parser.add_argument('--version', action='version', version=currentversion)
66
- parser.parse_args(['--version'])
67
-
68
return parser.parse_args()
0 commit comments