confighelper: add has_option method
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
5b4de64709
commit
c0ae10bef6
|
@ -60,6 +60,9 @@ class ConfigHelper:
|
|||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.config
|
||||
|
||||
def has_option(self, option: str) -> bool:
|
||||
return self.config.has_option(self.section, option)
|
||||
|
||||
def get_name(self) -> str:
|
||||
return self.section
|
||||
|
||||
|
|
Loading…
Reference in New Issue