From 748db830f634953c6780ac3c39491ac68d2d7de7 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Date: Sat, 25 Feb 2023 20:50:35 +0200 Subject: [PATCH] Renamed option --- slpkg/download_only.py | 2 +- slpkg/main.py | 2 +- slpkg/views/cli_menu.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/slpkg/download_only.py b/slpkg/download_only.py index 4d9863bb..ec54659c 100644 --- a/slpkg/download_only.py +++ b/slpkg/download_only.py @@ -19,7 +19,7 @@ class Download(Configs, Utilities): super(Utilities, self).__init__() self.flags = flags self.directory = directory - self.flag_directory = ['-d=', '--directory='] + self.flag_directory = ['-z=', '--directory='] self.session = Session def packages(self, slackbuilds: list): diff --git a/slpkg/main.py b/slpkg/main.py index b79db04e..bdd27a27 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -63,7 +63,7 @@ class Argparse(Configs): self.flag_pkg_version = '--pkg-version' self.flag_short_pkg_version = '-p' self.flag_directory = '--directory=' - self.flag_short_directory = '-e=' + self.flag_short_directory = '-z=' self.flag_file_pattern = '--file-pattern=' self.flag_short_file_pattern = '-F=' diff --git a/slpkg/views/cli_menu.py b/slpkg/views/cli_menu.py index 0a0a577f..5d3ef89e 100644 --- a/slpkg/views/cli_menu.py +++ b/slpkg/views/cli_menu.py @@ -28,7 +28,7 @@ class Usage(Configs): 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, -E, --full-reverse, -S, --search]\n' f' slpkg [{self.yellow}OPTIONS{self.endc}] [-n, --no-silent, -p, --pkg-version]\n' - f' slpkg [{self.yellow}OPTIONS{self.endc}] [-e, --directory=PATH, -F, --file-pattern=PATTERN]\n' + f' slpkg [{self.yellow}OPTIONS{self.endc}] [-z, --directory=PATH, -F, --file-pattern=PATTERN]\n' " \nIf you need more information please try 'slpkg --help'.") print(args) @@ -66,7 +66,7 @@ class Usage(Configs): f' {self.yellow}-S, --search{self.endc} Search packages from the repository.\n' f' {self.yellow}-n, --no-silent{self.endc} Disable silent mode.\n' f' {self.yellow}-p, --pkg-version{self.endc} Print the repository package version.\n' - f' {self.yellow}-e, --directory={self.endc}PATH Download files to a specific path.\n' + f' {self.yellow}-z, --directory={self.endc}PATH Download files to a specific path.\n' f' {self.yellow}-F, --file-pattern={self.endc}PATTERN Include specific installed files.\n' '\n -h, --help Show this message and exit.\n' ' -v, --version Print version and exit.\n'