mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +01:00
Updated for split options
This commit is contained in:
parent
d86c997eeb
commit
516d9320ec
1 changed files with 3 additions and 5 deletions
|
@ -388,8 +388,7 @@ class Argparse(Configs):
|
|||
try:
|
||||
if arg.startswith(self.flag_short_directory):
|
||||
self.directory: str = self.args[self.args.index(arg) + 1]
|
||||
self.args.remove(arg)
|
||||
self.args.append(self.flag_short_directory)
|
||||
self.args.remove(self.directory)
|
||||
except IndexError:
|
||||
self.directory: Path = self.tmp_slpkg
|
||||
|
||||
|
@ -401,10 +400,9 @@ class Argparse(Configs):
|
|||
try:
|
||||
if arg.startswith(self.flag_short_repository):
|
||||
self.repository: str = self.args[self.args.index(arg) + 1]
|
||||
self.args.remove(arg)
|
||||
self.args.append(self.flag_short_repository)
|
||||
self.args.remove(self.repository)
|
||||
except IndexError:
|
||||
self.repository = ''
|
||||
self.repository: str = ''
|
||||
|
||||
def move_options(self) -> None:
|
||||
""" Move options to the flags and removes from the arguments. """
|
||||
|
|
Loading…
Reference in a new issue