Check if two mutually exclusive CLAs have been passed.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(command_line_arguments_group), | intent(inout) | :: | self |
CLAsG data. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
subroutine check_m_exclusive(self, pref) !< Check if two mutually exclusive CLAs have been passed. class(command_line_arguments_group), intent(inout) :: self !< CLAsG data. character(*), optional, intent(in) :: pref !< Prefixing string. integer(I4P) :: a !< Counter. if (self%is_called) then do a=1, self%Na if (self%cla(a)%is_passed) then if (self%cla(a)%m_exclude/='') then if (self%is_passed(switch=self%cla(a)%m_exclude)) then call self%cla(a)%raise_error_m_exclude(pref=pref) self%error = self%cla(a)%error return endif endif endif enddo endif endsubroutine check_m_exclusive