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:
def __init__(self, options: list):
self.options: list = options
def __init__(self, flags: list):
self.flags: list = flags
self.etc_path: str = '/etc/slpkg'
self.slpkg_config = Path(self.etc_path, 'slpkg.toml')
self.blacklist_config = Path(self.etc_path, 'blacklist.toml')
@ -30,7 +30,7 @@ class NewConfig:
self.choice = None
def colors(self):
if '--no-colors' in self.options:
if '--no-colors' in self.flags:
self.color = {
'bold': '',
'red': '',