summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.py b/config.py
index a83433c..c883a3b 100644
--- a/config.py
+++ b/config.py
@@ -234,6 +234,9 @@ class Config:
def __contains__(self, key: str) -> bool:
return key in self.config
+ def get(self, key: str, default: Any = None) -> Optional[Any]:
+ return self.config.get(key, default)
+
@staticmethod
def add_commandline_args(title: str, description: str = "") -> argparse._ArgumentGroup:
"""Create a new context for arguments and return a handle.