mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
Update positions arguments for tracking deps
This commit is contained in:
parent
61537e5451
commit
eeddc7ea82
1 changed files with 16 additions and 15 deletions
|
@ -362,21 +362,22 @@ class ArgParse(object):
|
||||||
"--graph=",
|
"--graph=",
|
||||||
"--case-ins"
|
"--case-ins"
|
||||||
]
|
]
|
||||||
if (len(self.args) >= 3 and len(self.args) < 6 and
|
for arg in self.args:
|
||||||
self.args[0] in options):
|
if arg.startswith(additional_options[1]):
|
||||||
if self.args[1] in self.meta.repositories:
|
flag.append(arg)
|
||||||
for arg in self.args[3:]:
|
self.args.remove(arg)
|
||||||
if arg.startswith(additional_options[1]):
|
if arg in additional_options:
|
||||||
flag.append(arg)
|
flag.append(arg)
|
||||||
arg = ""
|
# clean addition options from args
|
||||||
if arg in additional_options:
|
for f in flag:
|
||||||
flag.append(arg)
|
if f in self.args:
|
||||||
if arg and arg not in additional_options:
|
self.args.remove(f)
|
||||||
usage("")
|
if (len(self.args) >= 3 and self.args[0] in options and
|
||||||
raise SystemExit()
|
self.args[1] in self.meta.repositories):
|
||||||
TrackingDeps(self.args[2], self.args[1], flag).run()
|
TrackingDeps(self.args[2], self.args[1], flag).run()
|
||||||
else:
|
elif (len(self.args) >= 2 and
|
||||||
usage(self.args[1])
|
self.args[1] not in self.meta.repositories):
|
||||||
|
usage(self.args[1])
|
||||||
else:
|
else:
|
||||||
usage("")
|
usage("")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue