Rename options

This commit is contained in:
Dimitris Zlatanidis 2023-01-28 17:36:23 +02:00
parent 69e2ca7794
commit 16742d222f
4 changed files with 19 additions and 19 deletions

View file

@ -4,7 +4,7 @@
.B slpkg - [OPTIONS] [COMMANDE] <packages>.
.SH SYNOPSIS
.P
slpkg [-h|-v] [-u, update] [-U, upgrade] [-cu, check-updates] [-g, configs] [-cl, clean-logs] [-ct, clean-tmp] [-b, build] [-i, install] [-d, download]
slpkg [-h|-v] [-u, update] [-U, upgrade] [-c, check-updates] [-g, configs] [-L, clean-logs] [-T, clean-tmp] [-b, build] [-i, install] [-d, download]
[-r, remove] [-f, find] [-w, view] [-s, search] [-e, dependees] [-t, tracking] -y, --yes, -j, --jobs, -ro, --resolve-off,
-R, --reinstall, -si, --skip-installed, -fr, --full-reverse, -S, --search, -ns, --no-silent, -dir=, --directory=PATH, -pv, --pkg-version, -fp=, --file-pattern=PATTERN
.SH DESCRIPTION
@ -27,17 +27,17 @@ Mettre à jour la liste des paquets et la base de données.
Mettre à niveau tous les paquets installés si une version plus récente existe dans le dépôt.
.RE
.P
.B -cu, check-updates
.B -c, check-updates
.RS
Vérifier si le fichier \fBChangeLog.txt\fP du SlackBuild contient des mises à jour.
.RE
.P
.B -cl, clean-logs
.B -L, clean-logs
.RS
Nettoyer les journaux de suivi de dépendances. \fBAttention\fP, après cette procédure vous devrez supprimer les dépendances à la main.
.RE
.P
.B -ct, clean-tmp
.B -T, clean-tmp
.RS
Supprimer tous les scripts et sources des SlackBuilds téléchargés.
.RE

View file

@ -4,7 +4,7 @@
.B slpkg - [OPTIONS] [COMMAND] <packages>
.SH SYNAPSES
.P
slpkg [-h|-v] [-u, update] [-U, upgrade] [-cu, check-updates] [-g, configs] [-cl, clean-logs] [-ct, clean-tmp] [-b, build] [-i, install] [-d, download]
slpkg [-h|-v] [-u, update] [-U, upgrade] [-c, check-updates] [-g, configs] [-L, clean-logs] [-T, clean-tmp] [-b, build] [-i, install] [-d, download]
[-r, remove] [-f, find] [-w, view] [-s, search] [-e, dependees] [-t, tracking] -y, --yes, -j, --jobs, -ro, --resolve-off,
-ri, --reinstall, -si, --skip-installed, -fr, --full-reverse, -S, --search, -ns, --no-silent, -dir=, --directory=PATH, -pv, --pkg-version, -fp=, --file-pattern=PATTERN
.SH DESCRIPTION
@ -27,17 +27,17 @@ Updates the package list and the database.
Upgrade all the installed packages if the newer version exists in the repository.
.RE
.P
.B -cu, check-updates
.B -c, check-updates
.RS
Check if there is any news on the SlackBuild's ChangeLog.txt file.
.RE
.P
.B -cl, clean-logs
.B -L, clean-logs
.RS
Cleans dependencies log tracking. After that procedure you should remove dependencies by hand.
.RE
.P
.B -ct, clean-tmp
.B -T, clean-tmp
.RS
Deletes all the downloaded SlackBuilds scripts and sources.
.RE

View file

@ -244,10 +244,10 @@ class Argparse(Configs):
commands['-v'] = commands['--version']
commands['-u'] = commands['update']
commands['-U'] = commands['upgrade']
commands['-cu'] = commands['check-updates']
commands['-c'] = commands['check-updates']
commands['-g'] = commands['configs']
commands['-cl'] = commands['clean-logs']
commands['-ct'] = commands['clean-tmp']
commands['-L'] = commands['clean-logs']
commands['-T'] = commands['clean-tmp']
commands['-b'] = commands['build']
commands['-i'] = commands['install']
commands['-d'] = commands['download']
@ -570,13 +570,13 @@ def main():
'upgrade': argparse.upgrade,
'-U': argparse.upgrade,
'check-updates': argparse.check_updates,
'-cu': argparse.check_updates,
'-c': argparse.check_updates,
'configs': argparse.edit_configs,
'-g': argparse.edit_configs,
'clean-logs': argparse.clean_logs,
'-cl': argparse.clean_logs,
'-L': argparse.clean_logs,
'clean-tmp': argparse.clean_tmp,
'-ct': argparse.clean_tmp,
'-T': argparse.clean_tmp,
'build': argparse.build,
'-b': argparse.build,
'install': argparse.install,

View file

@ -20,8 +20,8 @@ class Usage(Configs):
""" Prints the short menu. """
args = (
f'Usage: {Configs.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, -cu, check-updates]\n'
f' slpkg [{self.cyan}COMMAND{self.endc}] [-cl, clean-logs, -ct, clean-tmp, -g, configs]\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, -T, clean-tmp, -g, configs]\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] <packages>\n'
f' slpkg [{self.cyan}COMMAND{self.endc}] [-e, dependees, -t, tracking] <packages>\n'
@ -43,10 +43,10 @@ class Usage(Configs):
f'\n{self.bold}COMMANDS:{self.endc}\n'
f' {self.red}-u, update{self.endc} Update the package lists.\n'
f' {self.cyan}-U, upgrade{self.endc} Upgrade all the packages.\n'
f' {self.cyan}-cu, check-updates{self.endc} Check for news on ChangeLog.txt.\n'
f' {self.cyan}-cl, clean-logs{self.endc} Clean dependencies log tracking.\n'
f' {self.cyan}-ct, clean-tmp{self.endc} Delete all the downloaded sources.\n'
f' {self.cyan}-c, check-updates{self.endc} Check for news on ChangeLog.txt.\n'
f' {self.cyan}-g, configs{self.endc} Edit the configuration file.\n'
f' {self.cyan}-L, clean-logs{self.endc} Clean dependencies log tracking.\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}-d, download{self.endc} <packages> Download only the scripts and sources.\n'