diff --git a/slpkg/views/cli_menu.py b/slpkg/views/cli_menu.py index d236fa7e..c78cc305 100644 --- a/slpkg/views/cli_menu.py +++ b/slpkg/views/cli_menu.py @@ -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}] ') + print(f'Usage: {Configs.prog_name} [OPTIONS] [COMMAND] ') 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)}")