diff --git a/README.rst b/README.rst index d3253036..281bce06 100644 --- a/README.rst +++ b/README.rst @@ -43,23 +43,25 @@ Usage USAGE: slpkg [OPTIONS] - Packaging tool that interacts with the SBo repository. + DESCRIPTION: + Packaging tool that interacts with the SBo repository. + + COMMANDS: + update Update the package lists. + build Build only the packages. + install Build and install the packages. + remove Remove installed packages. + search Search packages by name. + clean-logs Purge logs of dependencies. OPTIONS: - update Update the package lists. - build Build only the packages. - install Build and install the packages. - remove Remove installed packages. - search Search packages by name. - clean-logs Purge logs of dependencies. + --yes Answer Yes to all questions. + --jobs Set it for multicore systems. + --resolve-off Turns off dependency resolving. + --reinstall Use this option if you want to upgrade. - --yes Answer Yes to all questions. - --jobs Set it for multicore systems. - --resolve-off Turns off dependency resolving. - --reinstall Use this option if you want to upgrade. - - -h, --help Show this message and exit. - -v, --version Print version and exit. + -h, --help Show this message and exit. + -v, --version Print version and exit. If you need more information try to use slpkg manpage. diff --git a/man/slpkg.1 b/man/slpkg.1 index 7c9e2b04..3f26d72d 100644 --- a/man/slpkg.1 +++ b/man/slpkg.1 @@ -10,7 +10,7 @@ slpkg [-h|-v] [update] [build] [install] [remove] [search] [clean-logs] --yes -- Slpkg is a software package manager that installs, updates, and removes packages on Slackware based systems. It automatically computes dependencies and figures out what things should occur to install packages. Slpkg makes it easier to maintain groups of machines without having to manually update. .P Slpkg works in accordance with the standards of the organization SlackBuilds.org to build packages. Also uses the Slackware Linux instructions for installation, upgrading or removing packages. -.SH OPTIONS +.SH COMMANDS .P update .RS @@ -41,6 +41,7 @@ clean-logs .RS Purge logs of dependencies. .RE +.SH OPTIONS .P --yes .RS diff --git a/slpkg/configs.py b/slpkg/configs.py index b5e62840..6e53cee9 100644 --- a/slpkg/configs.py +++ b/slpkg/configs.py @@ -102,6 +102,7 @@ class Configs: if cls.colors in ['on', 'ON']: color = { + 'BOLD': '\033[1m', 'RED': '\x1b[91m', 'GREEN': '\x1b[32m', 'YELLOW': '\x1b[93m', diff --git a/slpkg/views/cli_menu.py b/slpkg/views/cli_menu.py index 87daa478..4456178f 100644 --- a/slpkg/views/cli_menu.py +++ b/slpkg/views/cli_menu.py @@ -9,20 +9,23 @@ def usage(status: int): colors = Configs.colour color = colors() + BOLD = color['BOLD'] RED = color['RED'] CYAN = color['CYAN'] YELLOW = color['YELLOW'] ENDC = color['ENDC'] - args = [f'USAGE: {Configs.prog_name} [{CYAN}OPTIONS{ENDC}] \n', + args = [f'{BOLD}USAGE:{ENDC} {Configs.prog_name} [{CYAN}OPTIONS{ENDC}] \n', + f'{BOLD}DESCRIPTION:{ENDC}', ' Packaging tool that interacts with the SBo repository.\n', - 'OPTIONS:', + f'{BOLD}COMMANDS:{ENDC}', f' {RED}update{ENDC} Update the package lists.', f' {CYAN}build{ENDC} Build only the packages.', f' {CYAN}install{ENDC} Build and install the packages.', f' {CYAN}remove{ENDC} Remove installed packages.', f' {CYAN}search{ENDC} Search packages by name.', f' {CYAN}clean-logs{ENDC} Purge logs of dependencies.\n', + f'{BOLD}OPTIONS:{ENDC}', f' {YELLOW}--yes{ENDC} Answer Yes to all questions.', f' {YELLOW}--jobs{ENDC} Set it for multicore systems.', f' {YELLOW}--resolve-off{ENDC} Turns off dependency resolving.',