Check data consistency for envvar CLA.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(command_line_argument), | intent(inout) | :: | self |
CLA data. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
subroutine check_envvar_consistency(self, pref) !< Check data consistency for envvar CLA. class(command_line_argument), intent(inout) :: self !< CLA data. character(*), optional, intent(in) :: pref !< Prefixing string. if (allocated(self%envvar)) then if (self%is_positional) then call self%errored(pref=pref, error=ERROR_ENVVAR_POSITIONAL) return endif if (.not.allocated(self%act)) then call self%errored(pref=pref, error=ERROR_ENVVAR_NOT_STORE) return else if (self%act/=action_store) then call self%errored(pref=pref, error=ERROR_ENVVAR_NOT_STORE) return endif endif if (allocated(self%nargs)) then call self%errored(pref=pref, error=ERROR_ENVVAR_NARGS) return endif endif endsubroutine check_envvar_consistency