Check mutually exclusion consistency.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(command_line_argument), | intent(inout) | :: | self |
CLA data. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
subroutine check_m_exclude_consistency(self, pref) !< Check mutually exclusion consistency. class(command_line_argument), intent(inout) :: self !< CLA data. character(*), optional, intent(in) :: pref !< Prefixing string. if ((self%is_required).and.(self%m_exclude/='')) then call self%errored(pref=pref, error=ERROR_REQUIRED_M_EXCLUDE) return endif if ((self%is_positional).and.(self%m_exclude/='')) then call self%errored(pref=pref, error=ERROR_POSITIONAL_M_EXCLUDE) return endif endsubroutine check_m_exclude_consistency