mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-16 03:41:11 +01:00
Renamed option
This commit is contained in:
parent
8263f6530e
commit
748db830f6
3 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ class Download(Configs, Utilities):
|
||||||
super(Utilities, self).__init__()
|
super(Utilities, self).__init__()
|
||||||
self.flags = flags
|
self.flags = flags
|
||||||
self.directory = directory
|
self.directory = directory
|
||||||
self.flag_directory = ['-d=', '--directory=']
|
self.flag_directory = ['-z=', '--directory=']
|
||||||
self.session = Session
|
self.session = Session
|
||||||
|
|
||||||
def packages(self, slackbuilds: list):
|
def packages(self, slackbuilds: list):
|
||||||
|
|
|
@ -63,7 +63,7 @@ class Argparse(Configs):
|
||||||
self.flag_pkg_version = '--pkg-version'
|
self.flag_pkg_version = '--pkg-version'
|
||||||
self.flag_short_pkg_version = '-p'
|
self.flag_short_pkg_version = '-p'
|
||||||
self.flag_directory = '--directory='
|
self.flag_directory = '--directory='
|
||||||
self.flag_short_directory = '-e='
|
self.flag_short_directory = '-z='
|
||||||
self.flag_file_pattern = '--file-pattern='
|
self.flag_file_pattern = '--file-pattern='
|
||||||
self.flag_short_file_pattern = '-F='
|
self.flag_short_file_pattern = '-F='
|
||||||
|
|
||||||
|
|
|
@ -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}] [-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}] [-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}] [-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'.")
|
" \nIf you need more information please try 'slpkg --help'.")
|
||||||
|
|
||||||
print(args)
|
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}-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}-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}-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'
|
f' {self.yellow}-F, --file-pattern={self.endc}PATTERN Include specific installed files.\n'
|
||||||
'\n -h, --help Show this message and exit.\n'
|
'\n -h, --help Show this message and exit.\n'
|
||||||
' -v, --version Print version and exit.\n'
|
' -v, --version Print version and exit.\n'
|
||||||
|
|
Loading…
Reference in a new issue