Check if required CLAs are 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 is_required_passed(self, pref) !< Check if required CLAs are 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 (.not.self%cla(a)%is_required_passed(pref=pref)) then self%error = self%cla(a)%error write(self%usage_lun, '(A)') self%usage(pref=pref) return endif enddo endif endsubroutine is_required_passed