Skip to content
Permalink
Browse files
bug fix: cli
  • Loading branch information
usmannasir committed Feb 10, 2020
1 parent 3858416 commit cb254ffdaf4437b1be281b6d899b233246531e01
Showing 1 changed file with 0 additions and 11 deletions.
@@ -54,15 +54,4 @@ def prepareArguments(self):
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()

0 comments on commit cb254ff

Please sign in to comment.