mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Remove colors
This commit is contained in:
parent
9f598b51e8
commit
0b2147d4b0
1 changed files with 4 additions and 5 deletions
|
@ -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)}")
|
||||
|
|
Loading…
Reference in a new issue