From 16742d222f11eba6cd86a5be836825668e6a1774 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 28 Jan 2023 17:36:23 +0200 Subject: [PATCH] Rename options --- man/slpkg-fr.1 | 8 ++++---- man/slpkg.1 | 8 ++++---- slpkg/main.py | 12 ++++++------ slpkg/views/cli_menu.py | 10 +++++----- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/man/slpkg-fr.1 b/man/slpkg-fr.1 index 1d2a6f78..68abf6c6 100644 --- a/man/slpkg-fr.1 +++ b/man/slpkg-fr.1 @@ -4,7 +4,7 @@ .B slpkg - [OPTIONS] [COMMANDE] . .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 diff --git a/man/slpkg.1 b/man/slpkg.1 index 7451edb8..13f0c97d 100644 --- a/man/slpkg.1 +++ b/man/slpkg.1 @@ -4,7 +4,7 @@ .B slpkg - [OPTIONS] [COMMAND] .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 diff --git a/slpkg/main.py b/slpkg/main.py index fcd04e5b..e745f049 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -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, diff --git a/slpkg/views/cli_menu.py b/slpkg/views/cli_menu.py index b3e1fa41..93501ca4 100644 --- a/slpkg/views/cli_menu.py +++ b/slpkg/views/cli_menu.py @@ -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}] \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] \n' f' slpkg [{self.cyan}COMMAND{self.endc}] [-f, find, -w, view, -s, search] \n' f' slpkg [{self.cyan}COMMAND{self.endc}] [-e, dependees, -t, tracking] \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} Build only the packages.\n' f' {self.cyan}-i, install{self.endc} Build and install the packages.\n' f' {self.cyan}-d, download{self.endc} Download only the scripts and sources.\n'