746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
762 use dc_present, only: present_and_true
763 use dc_message, only: messagenotify
764 implicit none
765 type(ARGS), intent(inout) :: arg
766 logical, intent(in), optional :: severe
767 character(STRING) :: err_mess
768 integer :: i
769 character(len = *), parameter :: subname = 'DCArgsStrict'
770 continue
771 if (.not. arg % initialized) then
772 call messagenotify('W', subname, 'Call Open before Help in dc_args.')
773 call dcargsopen(arg)
774 end if
775 do i = 1, size(arg % cmd_opts_list)
776 err_mess = trim(arg % cmd_opts_list(i) % name) // ' is invalid option.'
777 if (.not. arg % cmd_opts_list(i) % flag_called) then
778 if (present_and_true(severe)) then
779 call messagenotify('E', subname, err_mess)
780 else
781 call messagenotify('W', subname, err_mess)
782 end if
783 end if
784 end do
Provides kind type parameter values.
integer, parameter, public string
Character length for string