(
    file_config: _ConfigDict,
    cli_config: _ConfigDict,
)
return file_config_only
Returns all options where multiple=True that
    appeared in the config file, but weren't passed
    via the command line.
Returns all options where multiple=True that
    appeared in the config file, but weren't passed
    via the command line.
Returns all options where multiple = True that appeared in the config file but weren t passed via the command line .
def apply_multi_defaults(
    file_config: _ConfigDict,
    cli_config: _ConfigDict,
) -> _ConfigDict:
    """
    Returns all options where multiple=True that
    appeared in the config file, but weren't passed
    via the command line.
    """

    cli_paths = cli_config.get("path")
    conf_file_paths = file_config.get("path", ".")
    file_config_only = {}
    if conf_file_paths and not cli_paths:
        file_config_only["path"] = as_list(conf_file_paths)

    # TODO: Can we retrieve the tuple below programmatically?
    multiple_options = ("exclude", "hook_module")
    for param in multiple_options:
        from_cli = cli_config.get(param)
        from_conf_file = file_config.get(param, "")
        if from_conf_file and not from_cli:
            file_config_only[param] = as_list(from_conf_file)

    return file_config_only
def apply_multi_defaults ( file_config : _ConfigDict , cli_config : _ConfigDict , ) -> _ConfigDict : cli_paths = cli_config . get ( "path" ) conf_file_paths = file_config . get ( "path" , "." ) file_config_only = { } if conf_file_paths and not cli_paths : file_config_only [ "path" ] = as_list ( conf_file_paths ) # TODO: Can we retrieve the tuple below programmatically? multiple_options = ( "exclude" , "hook_module" ) for param in multiple_options : from_cli = cli_config . get ( param ) from_conf_file = file_config . get ( param , "" ) if from_conf_file and not from_cli : file_config_only [ param ] = as_list ( from_conf_file ) return file_config_only