Remove colors

This commit is contained in:
Dimitris Zlatanidis 2023-01-10 17:54:49 +02:00
parent 9f598b51e8
commit 0b2147d4b0

View file

@ -71,10 +71,9 @@ class Usage:
print(args)
raise SystemExit(status)
def error_for_options(self, flags):
@staticmethod
def error_for_options(flags):
""" Error message for flags. """
print(f'Usage: {Configs.prog_name} [{self.yellow}OPTIONS{self.endc}] '
f'[{self.cyan}COMMAND{self.endc}] <packages>')
print(f'Usage: {Configs.prog_name} [OPTIONS] [COMMAND] <packages>')
print("Try 'slpkg --help' for help.\n")
raise SystemExit(f"{self.red}Error:{self.endc} Got an unexpected extra option, "
f"please use: \n{self.yellow}{', '.join(flags)}{self.endc}\n")
raise SystemExit(f"Error: Got an unexpected extra option, please use: \n{', '.join(flags)}")