mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for help
This commit is contained in:
parent
f6b12750fd
commit
24fc21fe06
1 changed files with 17 additions and 17 deletions
|
@ -15,9 +15,9 @@ class Usage(Configs):
|
|||
""" Prints the minimal help menu. """
|
||||
print(message)
|
||||
args: str = (
|
||||
f'\nUsage: {self.prog_name} [{self.cyan}COMMAND{self.endc}] [{self.yellow}OPTIONS{self.endc}] '
|
||||
f'[FILELIST|PACKAGES...]\n'
|
||||
f"\nTry '{self.prog_name} --help' for more options.\n")
|
||||
f'Usage: {self.prog_name} [{self.cyan}COMMAND{self.endc}] [{self.yellow}OPTIONS{self.endc}] '
|
||||
f'<packages>\n'
|
||||
f"\nTry '{self.prog_name} --help' for more options.")
|
||||
|
||||
print(args)
|
||||
raise SystemExit(1)
|
||||
|
@ -26,12 +26,12 @@ class Usage(Configs):
|
|||
""" Prints the short menu. """
|
||||
args: str = (
|
||||
f'USAGE: {self.prog_name} [{self.cyan}COMMAND{self.endc}] [{self.yellow}OPTIONS{self.endc}] '
|
||||
f'[FILELIST|PACKAGES...]\n'
|
||||
f'<packages>\n'
|
||||
f'\n slpkg [{self.cyan}COMMAND{self.endc}] [-u, update, -U, upgrade, -c, check-updates]\n'
|
||||
f' slpkg [{self.cyan}COMMAND{self.endc}] [-I, repo-info, -g, configs, -T, clean-tmp]\n'
|
||||
f' slpkg [{self.cyan}COMMAND{self.endc}] [-b, build, -i, install, -R, remove [PACKAGES...]]\n'
|
||||
f' slpkg [{self.cyan}COMMAND{self.endc}] [-d, download, -f, find, -w, view [PACKAGES...]]\n'
|
||||
f' slpkg [{self.cyan}COMMAND{self.endc}] [-s, search, -e, dependees, -t, tracking [PACKAGES...]]\n'
|
||||
f' slpkg [{self.cyan}COMMAND{self.endc}] [-b, build, -i, install, -R, remove <packages>]\n'
|
||||
f' slpkg [{self.cyan}COMMAND{self.endc}] [-d, download, -f, find, -w, view <packages>]\n'
|
||||
f' slpkg [{self.cyan}COMMAND{self.endc}] [-s, search, -e, dependees, -t, tracking <packages>]\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, -a, --install-data]\n'
|
||||
f' slpkg [{self.yellow}OPTIONS{self.endc}] [-E, --full-reverse, -S, --search, -n, --no-silent]\n'
|
||||
|
@ -47,7 +47,7 @@ class Usage(Configs):
|
|||
args: str = (
|
||||
f'{self.prog_name} - version {Version().version}\n\n'
|
||||
f'{self.bold}USAGE:{self.endc}\n {self.prog_name} [{self.cyan}COMMAND{self.endc}] '
|
||||
f'[{self.yellow}OPTIONS{self.endc}] [FILELIST|PACKAGES...]\n'
|
||||
f'[{self.yellow}OPTIONS{self.endc}] <packages>\n'
|
||||
f'\n{self.bold}DESCRIPTION:{self.endc}\n Package manager utility for Slackware.\n'
|
||||
f'\n{self.bold}COMMANDS:{self.endc}\n'
|
||||
f' {self.red}-u, update{self.endc} Update the package lists.\n'
|
||||
|
@ -56,15 +56,15 @@ class Usage(Configs):
|
|||
f' {self.cyan}-I, repo-info{self.endc} Prints the repositories information.\n'
|
||||
f' {self.cyan}-g, configs{self.endc} Edit the configuration file.\n'
|
||||
f' {self.cyan}-T, clean-tmp{self.endc} Delete all the downloaded sources.\n'
|
||||
f' {self.cyan}-b, build{self.endc} [PACKAGES...] Build only the packages.\n'
|
||||
f' {self.cyan}-i, install{self.endc} [PACKAGES...] Build and install the packages.\n'
|
||||
f' {self.cyan}-R, remove{self.endc} [PACKAGES...] Remove installed packages.\n'
|
||||
f' {self.cyan}-d, download{self.endc} [PACKAGES...] Download only the scripts and sources.\n'
|
||||
f' {self.cyan}-f, find{self.endc} [PACKAGES...] Find installed packages.\n'
|
||||
f' {self.cyan}-w, view{self.endc} [PACKAGES...] View packages from the repository.\n'
|
||||
f' {self.cyan}-s, search{self.endc} [PACKAGES...] Search packages from the repository.\n'
|
||||
f' {self.cyan}-e, dependees{self.endc} [PACKAGES...] Show which packages depend on.\n'
|
||||
f' {self.cyan}-t, tracking{self.endc} [PACKAGES...] Tracking the packages dependencies.\n'
|
||||
f' {self.cyan}-b, build{self.endc} <packages> Build only the packages.\n'
|
||||
f' {self.cyan}-i, install{self.endc} <packages> Build and install the packages.\n'
|
||||
f' {self.cyan}-R, remove{self.endc} <packages> Remove installed packages.\n'
|
||||
f' {self.cyan}-d, download{self.endc} <packages> Download only the scripts and sources.\n'
|
||||
f' {self.cyan}-f, find{self.endc} <packages> Find installed packages.\n'
|
||||
f' {self.cyan}-w, view{self.endc} <packages> View packages from the repository.\n'
|
||||
f' {self.cyan}-s, search{self.endc} <packages> Search packages from the repository.\n'
|
||||
f' {self.cyan}-e, dependees{self.endc} <packages> Show which packages depend on.\n'
|
||||
f' {self.cyan}-t, tracking{self.endc} <packages> Tracking the packages dependencies.\n'
|
||||
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'
|
||||
|
|
Loading…
Add table
Reference in a new issue