mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Fixed for --repository= option
This commit is contained in:
parent
4f9ebdbe5d
commit
abad7e7dbc
1 changed files with 4 additions and 0 deletions
|
@ -413,11 +413,13 @@ class Argparse(Configs):
|
|||
self.directory: str = arg.split('=')[1]
|
||||
self.args.remove(arg)
|
||||
self.args.append(self.flag_directory)
|
||||
break
|
||||
|
||||
try:
|
||||
if arg.startswith(self.flag_short_directory):
|
||||
self.directory: str = self.args[self.args.index(arg) + 1]
|
||||
self.args.remove(self.directory)
|
||||
break
|
||||
except IndexError:
|
||||
self.directory: Path = self.tmp_slpkg
|
||||
|
||||
|
@ -425,11 +427,13 @@ class Argparse(Configs):
|
|||
self.repository: str = arg.split('=')[1]
|
||||
self.args.remove(arg)
|
||||
self.args.append(self.flag_repository)
|
||||
break
|
||||
|
||||
try:
|
||||
if arg.startswith(self.flag_short_repository):
|
||||
self.repository: str = self.args[self.args.index(arg) + 1]
|
||||
self.args.remove(self.repository)
|
||||
break
|
||||
except IndexError:
|
||||
self.repository: str = str()
|
||||
|
||||
|
|
Loading…
Reference in a new issue