Updated for error messages

This commit is contained in:
Dimitris Zlatanidis 2023-03-16 22:20:26 +02:00
parent faae341112
commit b7c33ad523
3 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,7 @@
Updated:
- For empty arguments
- Checks for invalid options
- The error messages
Added:
- Vimdiff in the slpkg_new-configs file (Thanks to tkor)

View file

@ -471,7 +471,8 @@ class Argparse(Configs):
def clean_tmp(self) -> None:
if len(self.args) == 1:
print(f"\n[{self.bred}WARNING{self.endc}]: All the files in the '{self.tmp_path}{self.prog_name}' "
print(f"\n{self.prog_name}: {self.bred}WARNING{self.endc}: All the files in the "
f"'{self.tmp_path}{self.prog_name}' "
f"folder will delete!")
views = ViewMessage(self.flags)

View file

@ -137,7 +137,7 @@ class UpdateRepository(Configs):
def drop_the_tables(self):
""" Drop all the tables from the database. """
print(f'[{self.bred}WARNING{self.endc}]: All the data from the database will be deleted!')
print(f'\n{self.prog_name}: {self.bred}WARNING{self.endc}: All the data from the database will be deleted!')
self.view.question()
tables: list = [PonceTable.__table__,