From 207598dd4c089a8b54ad9489489c0c318f63e415 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 28 Dec 2022 12:32:39 +0200 Subject: [PATCH] Updated for configs --- slpkg/main.py | 3 ++- slpkg/views/cli_menu.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/slpkg/main.py b/slpkg/main.py index 9aa55efa..13e3b34e 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -51,7 +51,8 @@ class Argparse: self.flag_full_reverse = '--full-reverse' self.flag_search = '--search' - if not self.configs.dialog and self.flag_search in self.args: + if (not self.configs.dialog and self.flag_search in self.args or + not self.configs.dialog and 'configs' in self.args): print("Error: You should enable the dialog " "in the '/etc/slpkg/' folder.\n") self.usage.help(1) diff --git a/slpkg/views/cli_menu.py b/slpkg/views/cli_menu.py index a07c3552..d4eaf82f 100644 --- a/slpkg/views/cli_menu.py +++ b/slpkg/views/cli_menu.py @@ -65,7 +65,8 @@ class Usage: f' {self.yellow}--search{self.endc} Search packages from the repository.\n' '\n -h, --help Show this message and exit.\n' ' -v, --version Print version and exit.\n' - '\nEdit the configuration file in the /etc/slpkg/slpkg.toml.\n' + '\nEdit the configuration file in the /etc/slpkg/slpkg.toml \n' + "or run 'slpkg configs'.\n" 'If you need more information try to use slpkg manpage.') print(args)