mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Updated for packages
This commit is contained in:
parent
23e956fb3e
commit
19479a77be
2 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ class Usage(Configs):
|
|||
def help_short(self):
|
||||
""" Prints the short menu. """
|
||||
args = (
|
||||
f'Usage: {self.prog_name} [{self.yellow}OPTIONS{self.endc}] [{self.cyan}COMMAND{self.endc}] <packages>\n'
|
||||
f'Usage: {self.prog_name} [{self.yellow}OPTIONS{self.endc}] [{self.cyan}COMMAND{self.endc}] [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}] [-L, clean-logs, -D, clean-tmp, -g, configs]\n'
|
||||
f' slpkg [{self.cyan}COMMAND{self.endc}] [-b, build, -i, install, -d, download, -r, remove] <packages>\n'
|
||||
|
@ -38,7 +38,7 @@ class Usage(Configs):
|
|||
""" Prints the main menu. """
|
||||
args = (
|
||||
f'{self.bold}USAGE:{self.endc} {self.prog_name} [{self.yellow}OPTIONS{self.endc}] '
|
||||
f'[{self.cyan}COMMAND{self.endc}] <packages>\n'
|
||||
f'[{self.cyan}COMMAND{self.endc}] [PACKAGES...]\n'
|
||||
f'\n{self.bold}DESCRIPTION:{self.endc} 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'
|
||||
|
@ -81,7 +81,7 @@ class Usage(Configs):
|
|||
""" Error messages for flags. """
|
||||
flags.reverse() # Put first the short options.
|
||||
print(f'Usage: {self.prog_name} [{self.yellow}OPTIONS{self.endc}] '
|
||||
f'[{self.cyan}COMMAND{self.endc}] <packages>\n'
|
||||
f'[{self.cyan}COMMAND{self.endc}] [PACKAGES...]\n'
|
||||
f"Try 'slpkg --help' for help.\n")
|
||||
|
||||
print(f"{self.bold}{self.red}Error:{self.endc} Got an unexpected extra option.\n"
|
||||
|
|
|
@ -56,7 +56,7 @@ class Help(Configs):
|
|||
help_commands['-e'] = help_commands['dependees']
|
||||
help_commands['-t'] = help_commands['tracking']
|
||||
|
||||
print(f'Usage: {self.prog_name} [{self.yellow}OPTIONS{self.endc}] [{self.cyan}COMMAND{self.endc}] <packages>')
|
||||
print(f'Usage: {self.prog_name} [{self.yellow}OPTIONS{self.endc}] [{self.cyan}COMMAND{self.endc}] [PACKAGES...]')
|
||||
print(f"Try 'slpkg --help' for help.\n")
|
||||
print(f'{self.bold}{self.green}Help: {self.endc}{help_commands[self.command]}\n')
|
||||
print(f"{self.bold}COMMAND{self.endc}: {self.cyan}{self.command}{self.endc}")
|
||||
|
|
Loading…
Reference in a new issue