confighelper: add has_option method

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-11-18 19:27:30 -05:00
parent 5b4de64709
commit c0ae10bef6
1 changed files with 3 additions and 0 deletions

View File

@ -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