Updated for flags

This commit is contained in:
Dimitris Zlatanidis 2023-03-14 21:04:37 +02:00
parent deeaae364c
commit b563a6908b

View file

@ -9,8 +9,8 @@ from pathlib import Path
class NewConfig: class NewConfig:
def __init__(self, options: list): def __init__(self, flags: list):
self.options: list = options self.flags: list = flags
self.etc_path: str = '/etc/slpkg' self.etc_path: str = '/etc/slpkg'
self.slpkg_config = Path(self.etc_path, 'slpkg.toml') self.slpkg_config = Path(self.etc_path, 'slpkg.toml')
self.blacklist_config = Path(self.etc_path, 'blacklist.toml') self.blacklist_config = Path(self.etc_path, 'blacklist.toml')
@ -30,7 +30,7 @@ class NewConfig:
self.choice = None self.choice = None
def colors(self): def colors(self):
if '--no-colors' in self.options: if '--no-colors' in self.flags:
self.color = { self.color = {
'bold': '', 'bold': '',
'red': '', 'red': '',