Fixed --upgrade flag

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2020-06-03 20:47:04 +03:00
parent 8e57566cd0
commit 46793a9694

View file

@ -341,13 +341,13 @@ class ArgParse(BlackList):
"""
flag, skip = [], ""
if flags[0] in self.args:
for arg in self.args[3:]:
for arg in self.args:
if arg.startswith(flags[1]):
skip = Regex(arg.split("=")[1]).get()
self.args.remove(arg)
if arg in flags:
flag.append(arg)
if arg in self.args:
if arg not in self.args:
self.args.remove(arg)
if "--checklist" in flag:
self.if_checklist()