def config_to_settings(args):
    """Merge configuration file settings with any command-line provided settings."""
    if 'config' in args:
        if args['config'] != None:
            if 'settings' in args and args['settings'] != None:
                args['settings'].update(args['config']['serviceSettings'])
            else:
                args['settings'] = args['config']['serviceSettings']
        args.pop('config', None)
    return args
