When the right to require the performance of the act is clear, and it is apparent that no valid excuse for nonperformance can be given, a peremptory writ may be allowed in the first instance. In all other cases the alternative writ shall first issue.