def _options_commandline_overrides(options):
    """
    Override any config file option with the value specified on the
    commandline.

    This is typically called after

    :param options: A dict-like object containing commandline and config file
                    options.
    :type options: dict | attrdict.AttrDict
    :return: The modified dict-like with defaults and overrides.
    :rtype: dict | attrdict.AttrDict
    """
    cmdline_values = {
        'run_storage_base': options.run_storage_base,
        'watch': options.watch,
        'verbose': options.verbose,
        'uploader_config': options.uploader_config,
        'logging_config': options.logging_config,
    }

    # Commandline options override any value in the config file.
    for k, v in cmdline_values.items():
        if v is not None:
            options[k] = v

    return options