def get_option(name,project,default=None):
    """
    Get an option flag from the project structure, returning None if
    the flag is not defined.
    """
    if 'options' not in project:
        return default
    if name not in project['options']:
        return default
    return project['options'][name]