X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=config.py;h=ea5f68a296b66ea8946a61e6f85fe1891a0b33a8;hb=eb9e6df32ed696158bf34dba6464277b648f5c74;hp=b6262adf29b4f64816a793cfe7a692cd85d45d14;hpb=9484900f080e16f118806fe54973e69d36b043e8;p=python_utils.git diff --git a/config.py b/config.py index b6262ad..ea5f68a 100644 --- a/config.py +++ b/config.py @@ -96,11 +96,13 @@ args = argparse.ArgumentParser( # than once. config_parse_called = False + # A global configuration dictionary that will contain parsed arguments. # It is also this variable that modules use to access parsed arguments. # This is the data that is most interesting to our callers; it will hold # the configuration result. -config: Dict[str, Any] = {} +config = {} +# It would be really nice if this shit worked from interactive python def add_commandline_args(title: str, description: str = ""):