Read the first argument and match it with registered commands.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cla_t), | intent(inout) | :: | cla |
subroutine cla__read_command(cla) implicit none class(cla_t), intent(inout) :: cla character(:), allocatable :: cmd if (ubound(cla%arg_info%arg, dim=1) < 1) then cmd = "" return end if cmd = trim(cla%arg_info%arg(1)%v) if (cmd .in. all_cmds) then call cla%cmd%set_name(cmd) else call cla%cmd%set_name("") end if end subroutine cla__read_command