mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Updated exit code
This commit is contained in:
parent
8ab1d99697
commit
502e01bead
3 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ class Choose(Configs):
|
|||
self.list_height, self.choices)
|
||||
if code == 'cancel' or not packages:
|
||||
os.system('clear')
|
||||
raise SystemExit()
|
||||
raise SystemExit(0)
|
||||
|
||||
os.system('clear')
|
||||
|
||||
|
|
|
@ -67,4 +67,4 @@ class Help(Configs):
|
|||
print(f"{self.bold}COMMAND{self.endc}: {self.cyan}{self.command}{self.endc}")
|
||||
print(f"{self.bold}OPTIONS:{self.endc} {self.yellow}{', '.join(self.flags)}{self.endc}\n")
|
||||
print('If you need more information try to use slpkg manpage.\n')
|
||||
raise SystemExit()
|
||||
raise SystemExit(0)
|
||||
|
|
|
@ -238,5 +238,5 @@ class View(Configs):
|
|||
if not self.option_for_yes and self.ask_question:
|
||||
answer: str = input('\nDo you want to continue? [y/N] ')
|
||||
if answer not in ['Y', 'y']:
|
||||
raise SystemExit()
|
||||
raise SystemExit(0)
|
||||
print()
|
||||
|
|
Loading…
Reference in a new issue