From b563a6908b857dd7ecf40344d9920c85235f9c0a Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 14 Mar 2023 21:04:37 +0200 Subject: [PATCH] Updated for flags --- bin/slpkg_new-configs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/slpkg_new-configs b/bin/slpkg_new-configs index 72526b7d..c4bc97dc 100755 --- a/bin/slpkg_new-configs +++ b/bin/slpkg_new-configs @@ -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': '',