def configure(save=False, **kwargs):
if '<STR_LIT>' in kwargs:<EOL><INDENT>kwargs['<STR_LIT>'] = os.path.expanduser(kwargs['<STR_LIT>'])<EOL><DEDENT>CONFIG.update(kwargs)<EOL>if save:<EOL><INDENT>if not os.path.exists(CONFIG_DIR):<EOL><INDENT>os.mkdir(CONFIG_DIR)<EOL><DEDENT>json.dump(CONFIG, open(CONFIG_FILE, '<STR_LIT:w>'))<EOL>logger.debug('<STR_LIT>'.format(CONFIG_FILE))<EOL><DEDENT>
Parameters
----------
save: bool
    save config to file after it was updated
kwargs:
- stylelib_url: str

- stylelib_format: str

- auto_clear_cache: bool

- enable_logging: bool