mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-05 08:46:20 +01:00
Updated for flags
This commit is contained in:
parent
deeaae364c
commit
b563a6908b
1 changed files with 3 additions and 3 deletions
|
@ -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': '',
|
||||
|
|
Loading…
Add table
Reference in a new issue