Updated for short options

This commit is contained in:
Dimitris Zlatanidis 2023-01-27 23:54:33 +02:00
parent 8518e2f4ec
commit ec9cb87993
2 changed files with 8 additions and 7 deletions

View file

@ -53,7 +53,7 @@ class Argparse(Configs):
self.flag_reinstall = '--reinstall'
self.flag_short_reinstall = '-R'
self.flag_skip_installed = '--skip-installed'
self.flag_short_skip_installed = '-sk'
self.flag_short_skip_installed = '-si'
self.flag_full_reverse = '--full-reverse'
self.flag_short_full_reverse = '-fr'
self.flag_search = '--search'

View file

@ -23,11 +23,12 @@ class Usage(Configs):
f'\n slpkg [{self.cyan}COMMAND{self.endc}] [update, upgrade, check-updates, configs]\n'
f' slpkg [{self.cyan}COMMAND{self.endc}] [clean-logs, clean-tmp]\n'
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, -e, dependees] <packages>\n'
f' slpkg [{self.cyan}COMMAND{self.endc}] [-t, tracking] <packages>\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [--yes, --jobs, --resolve-off, --reinstall]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [--skip-installed, --full-reverse, --search, --no-silent]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [--directory=PATH, --pkg-version, --file-pattern]\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, -ro, --resolve-off, -R, --reinstall]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-si, --skip-installed, -fr, --full-reverse, -S, --search]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-ns, --no-silent, -dir=PATH, --directory=PATH]\n'
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-pv, --pkg-version, -fp=PATTERN, --file-pattern=PATTERN]\n'
" \nIf you need more information please try 'slpkg --help'.")
print(args)
@ -60,7 +61,7 @@ class Usage(Configs):
f' {self.yellow}-j, --jobs{self.endc} Set it for multicore systems.\n'
f' {self.yellow}-ro, --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}-sk, --skip-installed{self.endc} Skip installed packages.\n'
f' {self.yellow}-si, --skip-installed{self.endc} Skip installed packages.\n'
f' {self.yellow}-fr, --full-reverse{self.endc} Full reverse dependency.\n'
f' {self.yellow}-S, --search{self.endc} Search packages from the repository.\n'
f' {self.yellow}-ns, --no-silent{self.endc} Disable silent mode.\n'