Skip to content

Commit

Permalink
bug fix: cli
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Feb 10, 2020
1 parent 3858416 commit cb254ff
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cli/cliParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.