Check positional CLA 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_positional_consistency(self, pref) !< Check positional CLA consistency. class(command_line_argument), intent(inout) :: self !< CLA data. character(*), optional, intent(in) :: pref !< Prefixing string. if ((self%is_positional).and.(self%position==0_I4P)) then call self%errored(pref=pref, error=ERROR_POSITIONAL_NO_POSITION) return elseif ((self%is_positional).and.(self%act/=action_store)) then call self%errored(pref=pref, error=ERROR_POSITIONAL_NO_STORE) endif endsubroutine check_positional_consistency