Updated exit code

This commit is contained in:
Dimitris Zlatanidis 2023-12-02 17:53:34 +02:00
parent 8ab1d99697
commit 502e01bead
3 changed files with 3 additions and 3 deletions

View file

@ -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')

View file

@ -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)

View file

@ -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()