mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +01:00
Update positions arguments for deps-status
This commit is contained in:
parent
897c58d5fa
commit
c4efac52af
1 changed files with 11 additions and 6 deletions
|
@ -199,15 +199,20 @@ class ArgParse(object):
|
|||
def command_deps_status(self):
|
||||
"""Print dependencies status
|
||||
"""
|
||||
image = ""
|
||||
for arg in self.args:
|
||||
if arg.startswith("--graph="):
|
||||
image = arg.split("=")[1]
|
||||
if len(self.args) == 1 and self.args[0] == "deps-status":
|
||||
DependenciesStatus(image="").show()
|
||||
elif (len(self.args) == 2 and self.args[0] == "deps-status" and
|
||||
self.args[1].startswith("--graph=")):
|
||||
image = self.args[1].split("=")[1]
|
||||
DependenciesStatus(image).show()
|
||||
elif len(self.args) == 2 and self.args[0] == "deps-status" and image:
|
||||
DependenciesStatus(image).show()
|
||||
elif (len(self.args) == 2 and self.args[0] == "deps-status" and
|
||||
self.args[1] == "--tree"):
|
||||
DependenciesStatus(image="").tree()
|
||||
"--tree" in self.args):
|
||||
DependenciesStatus(image).tree()
|
||||
elif (len(self.args) == 3 and self.args[0] == "deps-status" and
|
||||
"--tree" in self.args and image):
|
||||
DependenciesStatus(image).tree()
|
||||
else:
|
||||
usage("")
|
||||
|
||||
|
|
Loading…
Reference in a new issue