Check if two mutually exclusive CLAs group have been called.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(command_line_interface), | intent(inout) | :: | self |
CLI data. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
subroutine check_m_exclusive(self, pref) !< Check if two mutually exclusive CLAs group have been called. class(command_line_interface), intent(inout) :: self !< CLI data. character(*), optional, intent(in) :: pref !< Prefixing string. integer(I4P) :: g !< Counter. integer(I4P) :: gg !< Counter. do g=1,size(self%clasg,dim=1)-1 if (self%clasg(g)%is_called.and.(self%clasg(g)%m_exclude/='')) then if (self%is_defined_group(group=self%clasg(g)%m_exclude, g=gg)) then if (self%clasg(gg)%is_called) then call self%clasg(g)%raise_error_m_exclude(pref=pref) self%error = self%clasg(g)%error exit endif endif endif enddo endsubroutine check_m_exclusive