def METHOD_NAME(namespace):
    if (namespace.extension_name and namespace.source) or (not namespace.extension_name and not namespace.source):
        raise CLIError("usage error: --name NAME | --source SOURCE")