Renamed option

This commit is contained in:
Dimitris Zlatanidis 2023-02-25 20:50:35 +02:00
parent 8263f6530e
commit 748db830f6
3 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ class Download(Configs, Utilities):
super(Utilities, self).__init__()
self.flags = flags
self.directory = directory
self.flag_directory = ['-d=', '--directory=']
self.flag_directory = ['-z=', '--directory=']
self.session = Session
def packages(self, slackbuilds: list):

View file

@ -63,7 +63,7 @@ class Argparse(Configs):
self.flag_pkg_version = '--pkg-version'
self.flag_short_pkg_version = '-p'
self.flag_directory = '--directory='
self.flag_short_directory = '-e='
self.flag_short_directory = '-z='
self.flag_file_pattern = '--file-pattern='
self.flag_short_file_pattern = '-F='

View file

@ -28,7 +28,7 @@ class Usage(Configs):
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-y, --yes, -j, --jobs, -o, --resolve-off, -R, --reinstall]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-k, --skip-installed, -E, --full-reverse, -S, --search]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-n, --no-silent, -p, --pkg-version]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-e, --directory=PATH, -F, --file-pattern=PATTERN]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-z, --directory=PATH, -F, --file-pattern=PATTERN]\n'
" \nIf you need more information please try 'slpkg --help'.")
print(args)
@ -66,7 +66,7 @@ class Usage(Configs):
f' {self.yellow}-S, --search{self.endc} Search packages from the repository.\n'
f' {self.yellow}-n, --no-silent{self.endc} Disable silent mode.\n'
f' {self.yellow}-p, --pkg-version{self.endc} Print the repository package version.\n'
f' {self.yellow}-e, --directory={self.endc}PATH Download files to a specific path.\n'
f' {self.yellow}-z, --directory={self.endc}PATH Download files to a specific path.\n'
f' {self.yellow}-F, --file-pattern={self.endc}PATTERN Include specific installed files.\n'
'\n -h, --help Show this message and exit.\n'
' -v, --version Print version and exit.\n'