Fixed for except options

This commit is contained in:
Dimitris Zlatanidis 2023-03-30 17:25:37 +03:00
parent e7d4bb8d25
commit fb91e151d9

View file

@ -285,7 +285,9 @@ class Argparse(Configs):
""" Checks combination for binaries use repositories only and if repository exists. """
if self.utils.is_option(self.flag_binaries, self.flags):
if self.binary_repo == '*' and not self.utils.is_option(['-s', 'search', '-u', 'update'], self.args):
except_options: list = ['-s', 'search', '-u', 'update', '-c', 'check-updates']
if self.binary_repo == '*' and not self.utils.is_option(except_options, self.args):
self.usage.help_minimal(f"{self.prog_name}: invalid binary repository '{self.binary_repo}'")
elif self.binary_repo not in self.repos.binaries_repositories_dict.keys() and self.binary_repo != '*':