mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-28 09:58:21 +01:00
Updated for configs
This commit is contained in:
parent
417dee263b
commit
207598dd4c
2 changed files with 4 additions and 2 deletions
|
@ -51,7 +51,8 @@ class Argparse:
|
||||||
self.flag_full_reverse = '--full-reverse'
|
self.flag_full_reverse = '--full-reverse'
|
||||||
self.flag_search = '--search'
|
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 "
|
print("Error: You should enable the dialog "
|
||||||
"in the '/etc/slpkg/' folder.\n")
|
"in the '/etc/slpkg/' folder.\n")
|
||||||
self.usage.help(1)
|
self.usage.help(1)
|
||||||
|
|
|
@ -65,7 +65,8 @@ class Usage:
|
||||||
f' {self.yellow}--search{self.endc} Search packages from the repository.\n'
|
f' {self.yellow}--search{self.endc} Search packages from the repository.\n'
|
||||||
'\n -h, --help Show this message and exit.\n'
|
'\n -h, --help Show this message and exit.\n'
|
||||||
' -v, --version Print version 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.')
|
'If you need more information try to use slpkg manpage.')
|
||||||
|
|
||||||
print(args)
|
print(args)
|
||||||
|
|
Loading…
Reference in a new issue