ModioAB / caramel

Caramel is a CA Registry Manager
GNU Affero General Public License v3.0
16 stars 5 forks source link

General function for where a config value should be read #64

Closed teoti001 closed 3 years ago

teoti001 commented 3 years ago

A semi-private function for getting a config variable, meant to be wrapped for usage outside caramel.config. E.g.:

def get_a(arguments):
    return _get_config_value( arguments, "a", True)

It also helps with handling if a config variable should be required so ArgParses required argument is not needed, not limiting the requirement to only the argument.