mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Added usage
This commit is contained in:
parent
dc2ab708a3
commit
9f598b51e8
1 changed files with 4 additions and 1 deletions
|
@ -73,5 +73,8 @@ class Usage:
|
|||
|
||||
def error_for_options(self, flags):
|
||||
""" Error message for flags. """
|
||||
raise SystemExit(f"\n{self.red}Error:{self.endc} Got an unexpected extra option, "
|
||||
print(f'Usage: {Configs.prog_name} [{self.yellow}OPTIONS{self.endc}] '
|
||||
f'[{self.cyan}COMMAND{self.endc}] <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")
|
||||
|
|
Loading…
Reference in a new issue