def checkOutfileOption(outfileOption):
    """
    function to set the default value for outfileOptions

    Args:
        outfileOption: relative path to output location or None

    Returns: relative path to output location

    """
    if outfileOption is None:
        return './index.rst'
    else:
        return outfileOption