Renamed options

This commit is contained in:
Dimitris Zlatanidis 2023-02-25 18:22:58 +02:00
parent 51139f5b3d
commit c5b3341cad
7 changed files with 13 additions and 13 deletions

View file

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

View file

@ -21,7 +21,7 @@ class Downloader(Configs, Utilities):
self.path = path
self.url = url
self.flags = flags
self.flag_no_silent = ['-o', '--no-silent']
self.flag_no_silent = ['-n', '--no-silent']
self.filename = url.split('/')[-1]
self.color = self.colour()
self.bold = self.color['bold']

View file

@ -49,7 +49,7 @@ class Argparse(Configs):
self.flag_jobs = '--jobs'
self.flag_short_jobs = '-j'
self.flag_resolve_off = '--resolve-off'
self.flag_short_resolve_off = '-l'
self.flag_short_resolve_off = '-o'
self.flag_reinstall = '--reinstall'
self.flag_short_reinstall = '-R'
self.flag_skip_installed = '--skip-installed'
@ -59,7 +59,7 @@ class Argparse(Configs):
self.flag_search = '--search'
self.flag_short_search = '-S'
self.flag_no_silent = '--no-silent'
self.flag_short_no_silent = '-o'
self.flag_short_no_silent = '-n'
self.flag_pkg_version = '--pkg-version'
self.flag_short_pkg_version = '-p'
self.flag_directory = '--directory='

View file

@ -32,8 +32,8 @@ class RemovePackages(Configs):
self.dependencies = []
self.utils = Utilities()
self.progress = ProgressBar()
self.flag_resolve_off = ['-l', '--resolve-off']
self.flag_no_silent = ['-o', '--no-silent']
self.flag_resolve_off = ['-o', '--resolve-off']
self.flag_no_silent = ['-n', '--no-silent']
self.output = 0
self.remove_pkg = None
self.stderr = None

View file

@ -53,9 +53,9 @@ class Slackbuilds(Configs):
self.bred = f'{self.bold}{self.red}'
self.flag_reinstall = ['-R', '--reinstall']
self.flag_skip_installed = ['-k', '--skip-installed']
self.flag_resolve_off = ['-l', '--resolve-off']
self.flag_resolve_off = ['-o', '--resolve-off']
self.flag_jobs = ['-j', '--jobs']
self.flag_no_silent = ['-o', '--no-silent']
self.flag_no_silent = ['-n', '--no-silent']
def execute(self):
""" Starting build or install the slackbuilds. """

View file

@ -25,9 +25,9 @@ class Usage(Configs):
f' slpkg [{self.cyan}COMMAND{self.endc}] [-b, build, -i, install, -d, download, -r, remove] <packages>\n'
f' slpkg [{self.cyan}COMMAND{self.endc}] [-f, find, -w, view, -s, search] <packages>\n'
f' slpkg [{self.cyan}COMMAND{self.endc}] [-e, dependees, -t, tracking] <packages>\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-y, --yes, -j, --jobs, -l, --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}] [-o, --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'
" \nIf you need more information please try 'slpkg --help'.")
@ -59,12 +59,12 @@ class Usage(Configs):
f'\n{self.bold}OPTIONS:{self.endc}\n'
f' {self.yellow}-y, --yes{self.endc} Answer Yes to all questions.\n'
f' {self.yellow}-j, --jobs{self.endc} Set it for multicore systems.\n'
f' {self.yellow}-l, --resolve-off{self.endc} Turns off dependency resolving.\n'
f' {self.yellow}-o, --resolve-off{self.endc} Turns off dependency resolving.\n'
f' {self.yellow}-R, --reinstall{self.endc} Upgrade packages of the same version.\n'
f' {self.yellow}-k, --skip-installed{self.endc} Skip installed packages.\n'
f' {self.yellow}-E, --full-reverse{self.endc} Full reverse dependency.\n'
f' {self.yellow}-S, --search{self.endc} Search packages from the repository.\n'
f' {self.yellow}-o, --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}-e, --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'

View file

@ -20,7 +20,7 @@ class ViewMessage(Configs):
def __init__(self, flags: list):
super(Configs, self).__init__()
self.flags = flags
self.flag_resolve_off = ['-l', '--resolve-off']
self.flag_resolve_off = ['-o', '--resolve-off']
self.flag_reinstall = ['-R', '--reinstall']
self.flag_yes = ['-y', '--yes']
self.file_pattern = f'*{self.sbo_repo_tag}'