mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +01:00
Fix args
This commit is contained in:
parent
cc90817ee5
commit
4d2a73f101
1 changed files with 10 additions and 9 deletions
|
@ -227,13 +227,14 @@ class ArgParse(object):
|
||||||
"""Manage flags for package upgrade option
|
"""Manage flags for package upgrade option
|
||||||
"""
|
"""
|
||||||
flag = skip, i = "", 0
|
flag = skip, i = "", 0
|
||||||
|
if flags[0] in self.args:
|
||||||
if flags[2] in self.args:
|
if flags[2] in self.args:
|
||||||
flag = flags[2]
|
flag = flags[2]
|
||||||
index = self.args.index(flags[2])
|
index = self.args.index(flags[2])
|
||||||
del self.args[index]
|
del self.args[index]
|
||||||
for arg in self.args:
|
for arg in self.args:
|
||||||
if arg.startswith("--skip"):
|
if arg.startswith("--skip"):
|
||||||
skip = skiped(self.args[3].split("=")[1])
|
skip = skiped(self.args[i].split("=")[1])
|
||||||
self.args.pop(i)
|
self.args.pop(i)
|
||||||
i += 1
|
i += 1
|
||||||
return flags, flag, skip
|
return flags, flag, skip
|
||||||
|
|
Loading…
Reference in a new issue