mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +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):
|
def command_deps_status(self):
|
||||||
"""Print dependencies status
|
"""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":
|
if len(self.args) == 1 and self.args[0] == "deps-status":
|
||||||
DependenciesStatus(image="").show()
|
DependenciesStatus(image).show()
|
||||||
elif (len(self.args) == 2 and self.args[0] == "deps-status" and
|
elif len(self.args) == 2 and self.args[0] == "deps-status" and image:
|
||||||
self.args[1].startswith("--graph=")):
|
|
||||||
image = self.args[1].split("=")[1]
|
|
||||||
DependenciesStatus(image).show()
|
DependenciesStatus(image).show()
|
||||||
elif (len(self.args) == 2 and self.args[0] == "deps-status" and
|
elif (len(self.args) == 2 and self.args[0] == "deps-status" and
|
||||||
self.args[1] == "--tree"):
|
"--tree" in self.args):
|
||||||
DependenciesStatus(image="").tree()
|
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:
|
else:
|
||||||
usage("")
|
usage("")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue