Fixed for --repository= option

This commit is contained in:
Dimitris Zlatanidis 2023-05-18 11:23:00 +03:00
parent 4f9ebdbe5d
commit abad7e7dbc

View file

@ -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()