mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Fixed --upgrade flag
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
8e57566cd0
commit
46793a9694
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue