def _default_with_off_flag(current, default, off_flag):
    """Helper method for merging command line args and noxfile config.

    Returns False if off_flag is set, otherwise, returns the default value if
    set, otherwise, returns the current value.
    """
    return (default or current) and not off_flag